Skip to content
Opensource internals
  • Posts

Replication

How ClickHouse Deduplicates Retried Inserts with a Content Hash

Oct 22, 2026 18 min read Jay Hubbert

ClickHouse hashes each inserted block into a UInt128 dedup token and keeps a bounded window of recent tokens to detect retries.

ClickhouseInternalsReplicationInsertDeduplication

Read more →

How ClickHouse Replicates MergeTree: A ZooKeeper Log and a Hash Deduplication

Oct 22, 2026 16 min read Jay Hubbert

Replication is a ZooKeeper log plus a content-hash deduplication check that rides along with the block-number allocation.

ClickhouseReplicationInternalsZookeeperDistributed

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·