mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix pkey for stats tables
This commit is contained in:
parent
7ec845db36
commit
038ecdb592
1 changed files with 5 additions and 3 deletions
|
|
@ -100,7 +100,8 @@ ORDER BY (
|
||||||
website_id,
|
website_id,
|
||||||
toStartOfHour(created_at),
|
toStartOfHour(created_at),
|
||||||
cityHash64(visit_id),
|
cityHash64(visit_id),
|
||||||
visit_id
|
visit_id,
|
||||||
|
event_type
|
||||||
)
|
)
|
||||||
SAMPLE BY cityHash64(visit_id)
|
SAMPLE BY cityHash64(visit_id)
|
||||||
TTL created_at + INTERVAL 10 DAY;
|
TTL created_at + INTERVAL 10 DAY;
|
||||||
|
|
@ -200,7 +201,8 @@ ORDER BY (
|
||||||
website_id,
|
website_id,
|
||||||
toStartOfDay(created_at),
|
toStartOfDay(created_at),
|
||||||
cityHash64(visit_id),
|
cityHash64(visit_id),
|
||||||
visit_id
|
visit_id,
|
||||||
|
event_type
|
||||||
)
|
)
|
||||||
SAMPLE BY cityHash64(visit_id);
|
SAMPLE BY cityHash64(visit_id);
|
||||||
|
|
||||||
|
|
@ -265,4 +267,4 @@ GROUP BY website_id,
|
||||||
subdivision1,
|
subdivision1,
|
||||||
city,
|
city,
|
||||||
event_type,
|
event_type,
|
||||||
timestamp);
|
timestamp);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue