Skip to content

Commit 7c7ea0f

Browse files
committed
perf(clickhouse): add task_events_v2 inserted_at minmax index
1 parent 4c21af8 commit 7c7ea0f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
ALTER TABLE trigger_dev.task_events_v2
9+
DROP INDEX IF EXISTS idx_inserted_at_projector;

0 commit comments

Comments
 (0)