There was an error while loading. Please reload this page.
1 parent 4c21af8 commit 7c7ea0fCopy full SHA for 7c7ea0f
1 file changed
internal-packages/clickhouse/schema/038_add_task_events_inserted_at_index.sql
@@ -0,0 +1,9 @@
1
+-- +goose Up
2
+-- Source index supporting closed projector windows on newly written parts.
3
+-- ADD INDEX only defines the index for new parts; existing parts are not materialized.
4
+ALTER TABLE trigger_dev.task_events_v2
5
+ ADD INDEX IF NOT EXISTS idx_inserted_at_projector inserted_at TYPE minmax GRANULARITY 1;
6
+
7
+-- +goose Down
8
9
+ DROP INDEX IF EXISTS idx_inserted_at_projector;
0 commit comments