Skip to main content

ClickHouse MergeTree Internals

Table of Contents

ClickHouse MergeTree Internals #

An AI-generated, source-grounded tutorial focused on the storage and query mechanisms behind ClickHouse time-series analytics.

Architecture Map #

flowchart TD A0["Data Part and Metadata"] --> A1["Write Path and Part Creation"] A1 --> A2["Read Path and Query Execution"] A2 --> A3["Indexes and Conditions"] A1 --> A4["Background Merges, Mutations, and Compaction"] A1 --> A5["Replication and ZooKeeper Coordination"]

Chapters #

  1. Data Part and Metadata
  2. Write Path and Part Creation
  3. Read Path and Query Execution
  4. Indexes and Conditions
  5. Background Merges, Mutations, and Compaction Selection
  6. Replication and ZooKeeper Coordination