mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 10:02:10 +03:00
7 lines
271 B
Elixir
7 lines
271 B
Elixir
|
CREATE TABLE IF NOT EXISTS
|
||
|
tmp_events_v2 AS events_v2 ENGINE = MergeTree()
|
||
|
ORDER BY (site_id, toDate(timestamp), name, user_id, timestamp)
|
||
|
PRIMARY KEY (site_id, toDate(timestamp), name, user_id)
|
||
|
PARTITION BY toYYYYMM(timestamp)
|
||
|
<%= @table_settings %>
|