Skip to content

Commit e61fae7

Browse files
committed
Add projection mode in blocks
1 parent e152d5b commit e61fae7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/tools/clickhouse/0000_clickhouse_create_blocks_table.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ CREATE TABLE IF NOT EXISTS blocks (
2929
INDEX idx_hash hash TYPE bloom_filter GRANULARITY 2,
3030
) ENGINE = VersionedCollapsingMergeTree(sign, insert_timestamp)
3131
ORDER BY (chain_id, block_number)
32-
PARTITION BY toYYYYMM(block_timestamp);
32+
PARTITION BY toYYYYMM(block_timestamp)
33+
SETTINGS deduplicate_merge_projection_mode = 'rebuild', lightweight_mutation_projection_mode = 'rebuild';

0 commit comments

Comments
 (0)