mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 01:54:34 +03:00
7 lines
278 B
Elixir
7 lines
278 B
Elixir
|
CREATE TABLE IF NOT EXISTS
|
||
|
tmp_sessions_v2 AS sessions_v2 ENGINE = CollapsingMergeTree(sign)
|
||
|
PARTITION BY toYYYYMM(start)
|
||
|
PRIMARY KEY (site_id, toDate(start), user_id, session_id)
|
||
|
ORDER BY (site_id, toDate(start), user_id, session_id)
|
||
|
<%= @table_settings %>
|