The MergeTree engine is ClickHouse's core storage engine that achieves exceptional analytical query performance through specific design choices. Data is stored in immutable parts created by each INSERT, organized into granules (default 8192 rows) that serve as the smallest read unit. A sparse index tracks granule boundaries

16m read timeFrom bigdataboutique.com
Post cover image
Table of contents
Parts: The Unit of StorageGranules and the Sparse IndexPrimary Key vs. Sorting KeyThe Merge ProcessMutations: When Data Gets RewrittenData Skipping IndicesCompression and Column SettingsTTL: Automatic Data LifecycleKey Settings ReferenceKey Takeaways

Sort: