From 9169362819ce3e7de9920048512fabe3531c08dc Mon Sep 17 00:00:00 2001 From: zhuofeng Date: Wed, 25 Sep 2024 14:35:11 +0800 Subject: [PATCH] feat: the application log table uses app_service as the primary key --- server/ingester/app_log/dbwriter/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ingester/app_log/dbwriter/log.go b/server/ingester/app_log/dbwriter/log.go index f527991ba13..3aec521f64d 100644 --- a/server/ingester/app_log/dbwriter/log.go +++ b/server/ingester/app_log/dbwriter/log.go @@ -237,7 +237,7 @@ func LogColumns() []*ckdb.Column { func GenLogCKTable(cluster, storagePolicy, table string, ttl int, coldStorage *ckdb.ColdStorage) *ckdb.Table { timeKey := "time" engine := ckdb.MergeTree - orderKeys := []string{timeKey, "app_service", "timestamp"} + orderKeys := []string{"app_service", timeKey, "timestamp"} partition := DefaultPartition return &ckdb.Table{