---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?source=clickhouse&tag=c-cpp"
---

# Posts

Filtered by topics: C & C++, source: ClickHouse.

Posts 1–22 of 22, page 1 of 1, newest first.

## 2026-11-25

- [How well is ClickHouse tested? A detailed view of increasing our own coverage](https://swe.quest/articles/how-well-is-clickhouse-tested-a-detailed-view-of-increasing-our-own-coverage-cfaf966583bc47db.md): ClickHouse · 2026-11-25 · Medium · 17 min read · Testing, CI/CD, C & C++, Compilers, AI for coding
  ClickHouse's ~2.6M-line C++ codebase reaches 91.8% line, 81.0% branch and 91.8% function coverage, measured with Clang source-based coverage across 23 CI shards every 3 hours and published at coverage.clickhouse.com.

## 2026-09-30

- [Memory safety for Postgres extensions in C/C++](https://swe.quest/articles/memory-safety-for-postgres-extensions-in-c-c-b6883b8eb3b1e33d.md): ClickHouse · 2026-09-30 · Hard · 4 min read · PostgreSQL, Memory safety, C & C++, Memory management
  Postgres's palloc/MemoryContext allocation and setjmp/longjmp-based error handling clash with C++ new/delete, destructors and exceptions: longjmp skips destructors (undefined behavior), exceptions bypass PG\_CATCH, and an uncaught exception aborts the process and forces cluster-wide crash recovery.

## 2026-07-29

- [Instrumenting my espresso machine with OpenTelemetry](https://swe.quest/articles/instrumenting-my-espresso-machine-with-opentelemetry-d67ba22f350cd82b.md): ClickHouse · 2026-07-29 · Medium · 18 min read · Observability, Hardware, C & C++, Concurrency, Analytics & OLAP
  A Gaggia espresso machine running the GaggiMate ESP32 controller is instrumented with OpenTelemetry and shipped to ClickHouse Cloud via ClickStack, modelling each shot as a trace with phase child spans and fast-moving sensor state as gauge metrics.

## 2026-06-26

- [How I hunt for vulnerabilities with AI](https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da.md): ClickHouse · 2026-06-26 · Medium · 23 min read · Vulnerability research, AI agents, AI for coding, C & C++
  AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse.

## 2026-06-25

- [Announcing Silk: a silky smooth fiber runtime for ClickHouse](https://swe.quest/articles/announcing-silk-a-silky-smooth-fiber-runtime-for-clickhouse-bd3ca633b291b6b6.md): ClickHouse · 2026-06-25 · Hard · 11 min read · Concurrency, Runtimes & VMs, C & C++, Performance engineering, Linux
  Silk is a C++ stackful-fiber runtime for ClickHouse. It pins one scheduler thread per CPU, uses io\_uring as its I/O foundation, steals work in order of CPU topology cost (hyperthread sibling, then same socket, then cross-socket), and does zero heap allocation in the steady-state hot path through mmap'd stack pools, stack-resident futures and intrusive containers.

## 2026-06-15

- [Ten years of ClickHouse in open source](https://swe.quest/articles/ten-years-of-clickhouse-in-open-source-271aa2e036084367.md): ClickHouse · 2026-06-15 · Easy · 12 min read · Analytics & OLAP, Storage engines, Open source, C & C++
  ClickHouse marks ten years as open source, with more than 2000 contributors and the stated aim of being a fully open project: public roadmap, CI, code review and a learning resource for C++ and database engineering.

## 2026-05-22

- [Integrating the Rust Delta Kernel into ClickHouse](https://swe.quest/articles/integrating-the-rust-delta-kernel-into-clickhouse-4dfcdd8e64024cda.md): ClickHouse · 2026-05-22 · Hard · 17 min read · Analytics & OLAP, Rust, C & C++, Build systems, Data pipelines
  ClickHouse replaced its hand-written Delta Lake protocol implementation with the Rust Delta Kernel (delta-kernel-rs).

## 2026-04-01

- [Agentic coding at ClickHouse](https://swe.quest/articles/agentic-coding-at-clickhouse-8afb95a1baae3481.md): ClickHouse · 2026-04-01 · Medium · 32 min read · AI for coding, AI agents, Code review, Developer productivity, C & C++
  ClickHouse uses coding agents, mainly Claude Code with Opus 4.6 and Codex CLI as a fallback, for daily work on its large C++ codebase, which the author says became practical with Claude Opus 4.5 in November 2025.

## 2026-03-05

- [Introducing ClickStack embedded in ClickHouse](https://swe.quest/articles/introducing-clickstack-embedded-in-clickhouse-5655542c4f7400aa.md): ClickHouse · 2026-03-05 · Medium · 8 min read · Observability, Build systems, C & C++, Analytics & OLAP
  Starting with ClickHouse 26.2, the ClickStack (HyperDX) observability UI ships inside the ClickHouse binary at /clickstack, adding about 4 MB, for local exploration of logs, traces, metrics and ClickHouse's own system tables.

## 2025-12-18

- [Taming PostgreSQL GUC “extra” Data](https://swe.quest/articles/taming-postgresql-guc-extra-data-7e376007c1715e0d.md): ClickHouse · 2025-12-18 · Hard · 8 min read · PostgreSQL, C & C++, Memory management, Configuration management
  PostgreSQL GUC check and assign hooks can pre-parse a custom string setting into a structured value, but only if the "extra" data follows the GUC API's memory rules.

## 2025-12-17

- [How to use Rust in ClickHouse: avoiding a full rewrite](https://swe.quest/articles/how-to-use-rust-in-clickhouse-avoiding-a-full-rewrite-e470754e07a213d4.md): ClickHouse · 2025-12-17 · Medium · 13 min read · Rust, C & C++, Build systems, Refactoring & migrations, Testing
  ClickHouse, a 1.5M-line C++ analytic database, is adopting Rust incrementally rather than rewriting.

## 2025-12-16

- [Parallelizing ClickHouse aggregation merge for fixed hash map](https://swe.quest/articles/parallelizing-clickhouse-aggregation-merge-for-fixed-hash-map-9fc83cd0ed214dc7.md): ClickHouse · 2025-12-16 · Hard · 6 min read · Query engines, Performance engineering, Concurrency, Memory management, C & C++
  ClickHouse 25.11 parallelizes the merge phase for GROUP BY on 8- and 16-bit keys, which use an array-backed FixedHashMap.

## 2025-11-19

- [chDB Kernel Upgrade Journey: Upgrading ClickHouse to v25.8.2.29](https://swe.quest/articles/chdb-kernel-upgrade-journey-upgrading-clickhouse-to-v25-8-2-29-3cca5f2ad115d794.md): ClickHouse · 2025-11-19 · Hard · 16 min read · Memory management, C & C++, Python, Analytics & OLAP, Performance engineering
  Upgrading chDB's embedded ClickHouse kernel from v25.5 to v25.8.2.29 surfaced allocator conflicts rooted in chDB's dual-library design: a stable-ABI \`\_chdb.abi3.so\` holding the ~120MB engine plus small per-Python-version pybind11 binding libraries.

## 2025-04-01

- [A Year of Rust in ClickHouse](https://swe.quest/articles/a-year-of-rust-in-clickhouse-fadc1c7501c80398.md): ClickHouse · 2025-04-01 · Medium · 12 min read · Rust, C & C++, Build systems, Testing, Supply chain security
  ClickHouse added Rust to its C++ codebase as an option for new components rather than a rewrite, starting with BLAKE3, then skim for clickhouse-client history, PRQL as a switchable query dialect, and Databricks' delta-kernel-rs replacing a sketchy C++ Delta Lake implementation.

## 2024-08-29

- [How we made querying Pandas DataFrames with chDB 87x faster](https://swe.quest/articles/how-we-made-querying-pandas-dataframes-with-chdb-87x-faster-1ee5b7d8017e769d.md): ClickHouse · 2024-08-29 · Medium · 8 min read · Python, Performance engineering, Query engines, Analytics & OLAP, C & C++
  chDB, the in-process embedded ClickHouse, sped up SQL queries over Pandas DataFrames 87x by replacing its original Parquet serialize/deserialize round-trip through file descriptors with a native Python table engine that reads Python objects directly.

## 2023-10-03

- [CPU Dispatch in ClickHouse](https://swe.quest/articles/cpu-dispatch-in-clickhouse-5bbf7a6eb81cd552.md): ClickHouse · 2023-10-03 · Hard · 16 min read · C & C++, Performance engineering, Compilers, Hardware, Analytics & OLAP
  CPU dispatch lets a single binary use SIMD instruction sets like AVX2 and AVX-512 while staying compatible with older CPUs: hot functions are compiled for several targets with the target attribute, and the best variant is chosen at runtime using CPUID feature checks.

## 2023-09-29

- [chDB - A Rocket Engine on a Bicycle](https://swe.quest/articles/chdb-a-rocket-engine-on-a-bicycle-951148e84c12126b.md): ClickHouse · 2023-09-29 · Hard · 9 min read · Analytics & OLAP, Memory management, C & C++, Python, Performance engineering
  chDB embeds the ClickHouse engine as an in-process Python module instead of shelling out to the 500MB clickhouse-local binary, using WriteBufferFromVector, Python memoryview and Pybind11 for zero-copy result retrieval.

## 2023-09-27

- [ClickHouse Keeper: A ZooKeeper alternative written in C++](https://swe.quest/articles/clickhouse-keeper-a-zookeeper-alternative-written-in-c-982cab848c27cdde.md): ClickHouse · 2023-09-27 · Medium · 16 min read · Consensus, Distributed systems, Performance engineering, Analytics & OLAP, C & C++
  ClickHouse Keeper is a C++ drop-in replacement for ZooKeeper with the same client protocol and data model.

## 2023-05-16

- [Hash tables in ClickHouse and C++ Zero-cost Abstractions](https://swe.quest/articles/hash-tables-in-clickhouse-and-c-zero-cost-abstractions-bd1cf29e2582e0a8.md): ClickHouse · 2023-05-16 · Hard · 19 min read · Data structures, C & C++, Performance engineering, Query engines, Analytics & OLAP
  ClickHouse implements GROUP BY and JOIN with a family of open-addressing hash tables generated from a common zero-cost C++ framework, specialized by key type and workload.

## 2023-04-12

- [Speeding up LZ4 in ClickHouse](https://swe.quest/articles/speeding-up-lz4-in-clickhouse-dbbd26281ee7c0df.md): ClickHouse · 2023-04-12 · Hard · 32 min read · Performance engineering, Storage engines, C & C++, Algorithms, Analytics & OLAP
  LZ4 decompression often tops ClickHouse query profiles because highly compressible, cached columnar data shifts the cost onto CPU, yet storing data uncompressed proved impractical due to disk space.

## 2022-11-23

- [JIT in ClickHouse](https://swe.quest/articles/jit-in-clickhouse-a3bd9587dc26e5d4.md): ClickHouse · 2022-11-23 · Hard · 27 min read · Compilers, Query engines, C & C++, Performance engineering, Analytics & OLAP
  Just-in-time compilation is built up from first principles: hand-encoding x86-64 instructions into an mmap'd executable page, calling back into host functions via pointers, and reading ELF sections to see where code and constants live.

## 2022-10-25

- [More Than 2x Faster Hashing in ClickHouse Using Rust](https://swe.quest/articles/more-than-2x-faster-hashing-in-clickhouse-using-rust-404bde5cc500d24b.md): ClickHouse · 2022-10-25 · Medium · 5 min read · Rust, C & C++, Build systems, Performance engineering, Cryptography
  ClickHouse added optional Rust library support to its C++/CMake build using Corrosion-rs, with BLAKE3 as the first library, exposed to C++ through a Rust shim function using C-compatible FFI types and a header file.

Same list as RSS: [https://swe.quest/feed.xml?source=clickhouse&tag=c-cpp](https://swe.quest/feed.xml?source=clickhouse&tag=c-cpp). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
