ClickHouse MergeTree Engine Internals
Technical deep dive into ClickHouse storage mechanics, focusing on data part lifecycle, primary key indexing, and background merge processing.
Sample Questions
Which file stores the primary index data in a ClickHouse MergeTree table part?
- data.bin
- primary.idx
- columns.txt
- marks.mrk
What is the default value for the index_granularity setting in MergeTree?
- 1024
- 4096
- 8192
- 16384
Which engine should be used to automatically delete rows with the same primary key, keeping only the latest version?
- SummingMergeTree
- ReplacingMergeTree
- CollapsingMergeTree
- AggregatingMergeTree