fix: realtime user analytics (#5129)

This commit is contained in:
Vrishab Srivatsa
2024-07-02 15:51:08 +05:30
committed by GitHub
parent a343f69dc4
commit 5d86002ce7
6 changed files with 33 additions and 7 deletions

View File

@ -210,6 +210,7 @@ CREATE TABLE active_payments (
`created_at` DateTime64,
`flow_type` LowCardinality(Nullable(String)),
INDEX merchantIndex merchant_id TYPE bloom_filter GRANULARITY 1
INDEX flowTypeIndex flow_type TYPE bloom_filter GRANULARITY 1
) ENGINE = MergeTree
PARTITION BY toStartOfSecond(created_at)
ORDER BY