Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Analytics & OLAP Remove topic Analytics & OLAP Clear all 38 posts RSS

2026

How we extended Apache DataFusion to execute one query across many machines

Case study 12 min +120 XP

Datadog built Distributed DataFusion, an open source Rust framework that extends Apache DataFusion's physical execution model so a single interactive query can run across many machines while keeping latency roughly flat as data grows.

ClickHouse

pg_stat_ch: a PostgreSQL extension that exports every metric to ClickHouse

Deep dive 16 min +160 XP

pg_stat_ch is an open-source (Apache 2.0) PostgreSQL 16–18 extension that captures every statement execution, including failed queries and DDL, as a fixed-size ~4.6KB event with 45 fields and streams it to ClickHouse for APM-style analysis.

2025

ClickHouse

How we made ClickHouse UPDATEs 1,000× faster (Part 3: Benchmarks)

Research 17 min +170 XP

ClickHouse's new standard SQL UPDATEs, implemented as lightweight patch parts, make changes visible up to ~1,000–1,700× faster than classic mutations on a 600M-row TPC-H lineitem table: one bulk update dropped from about 100 s to 60 ms. The benchmark compares classic mutations, on-the-fly mutations, lightweight updates and ReplacingMergeTree inserts for both bulk and single-row updates, measuring time to visibility and worst-case query slowdown before merges.

ClickHouse

How we built fast UPDATEs for the ClickHouse column store – Part 2: SQL-style UPDATEs

Deep dive 20 min +200 XP

ClickHouse implemented standard SQL UPDATE in its MergeTree column store by evolving from classic mutations (which rewrite whole affected columns and hard-link unchanged ones) through lightweight DELETEs via a _row_exists mask column and on-the-fly in-memory updates, to patch parts.

The quest for software engineering knowledge.

Look:
Layout: