mirror of
https://github.com/plausible/analytics.git
synced 2024-11-22 02:27:57 +03:00
materialize projection
This commit is contained in:
parent
fb70176b18
commit
5efdeb5dc6
@ -24,6 +24,12 @@ defmodule Plausible.IngestRepo.Migrations.CreateIngestCountersSiteTrafficProject
|
||||
GROUP BY site_id, toDate(event_timebucket)
|
||||
)
|
||||
"""
|
||||
|
||||
execute """
|
||||
ALTER TABLE ingest_counters
|
||||
#{Plausible.MigrationUtils.on_cluster_statement("ingest_counters")}
|
||||
MATERIALIZE PROJECTION ingest_counters_site_traffic_projection
|
||||
"""
|
||||
end
|
||||
|
||||
def down do
|
||||
|
Loading…
Reference in New Issue
Block a user