Skip to content

Commit

Permalink
feat: the application log table uses app_service as the primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
lzf575 committed Sep 25, 2024
1 parent a99932c commit bc51fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/ingester/app_log/dbwriter/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func LogColumns() []*ckdb.Column {
func GenLogCKTable(cluster, storagePolicy, table, ckdbType 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{
Expand Down

0 comments on commit bc51fea

Please sign in to comment.