reorder CH stats index
This commit is contained in:
1 parent
3205b4f0f4
commit
161da582ba
1 file changed
+2
-2
@@ -100,10 +100,10 @@ ENGINE = AggregatingMergeTree
|
||||
PARTITION BY toYYYYMM(created_at)
|
||||
ORDER BY (
|
||||
website_id,
|
||||
event_type,
|
||||
toStartOfHour(created_at),
|
||||
cityHash64(visit_id),
|
||||
visit_id,
|
||||
event_type
|
||||
visit_id
|
||||
)
|
||||
SAMPLE BY cityHash64(visit_id);
|
||||
|
||||
|
||||
Reference in new issue
Block a user