ClickHouse Release 25.4
ClickHouse 25.4 adds lazy materialization, which defers reading column data until it is needed. On a Top-N query over Amazon reviews it cut runtime from 219s to 0.139s, with 40× less I/O and 300× less memory. Other additions are MergeTree tables on read-only object storage that refresh parts, allowing one writer and unlimited readers for data sharing, and a CPU workload scheduler. The scheduler uses CPU resources and hierarchical workloads with max_concurrent_threads and weights. The release also brings experimental correlated subqueries in EXISTS, Apache Iceberg time travel via snapshot timestamps, a table-level default compression codec, persistent databases in clickhouse-local, and SSH access to the public playground.
Related posts
- ClickHouse gets lazier (and faster): Introducing lazy materialization
ClickHouse mediumAdept
ClickHouse 25.4 adds lazy materialization, which defers reading column data until the query plan actually needs it. For Top N queries with ORDER BY and LIMIT, large SELECT columns are read only for the few rows that survive sorting and limiting. Layered on top of columnar storage, sparse primary indexes and PREWHERE, it cut a query over a 150M-row Amazon reviews table from 219 seconds to 139 ms (1,576×) with no SQL changes. The walkthrough also measures each layer's contribution on cold cache, showing that disk throughput, not CPU, dominates the cost of reading large string columns.
- ClickHouse Release 26.3
ClickHouse mediumAdept
ClickHouse 26.3 ships 27 features, 40 performance optimizations and 202 bug fixes. Headline changes are asynchronous inserts enabled by default, JOIN reordering for ANTI/SEMI/FULL joins, and MATERIALIZED CTEs, which evaluate a WITH subquery once into a temporary table. In a UK property-prices example, materializing the CTE roughly halved query time and cut peak memory from 1.5 GiB to about 88 MiB. The release also adds pretty/compact EXPLAIN output, naturalSortKey, JSONExtract support for the JSON type, and experimental WebAssembly UDFs sandboxed with Wasmtime. TTL DELETE can now use vertical merges, and the post explains how horizontal and vertical merges work and when each is chosen.
- ClickHouse Release 25.9
ClickHouse mediumAdept
ClickHouse 25.9 adds automatic global join reordering, which uses a greedy algorithm plus row-count estimates or manually created column statistics to pick build/probe order across many tables. On a six-table TPC-H query at scale factor 100 it cut runtime from over an hour to 2.7 seconds (~1,450×) with ~25× less memory. Secondary indices are now checked granule by granule while data is read, so LIMIT queries stop early; one LIMIT 1 query ran over 4× faster. Other changes include an experimental streaming-friendly text index replacing the FST design, Iceberg write and metadata improvements, arrayExcept, argument-less boolean settings, and S3 storage class selection.
- ClickHouse Release 23.12
ClickHouse mediumAdept
ClickHouse 23.12 adds experimental Refreshable Materialized Views, which periodically re-run an arbitrary query and atomically replace the results in a target table. That makes complex multi-join aggregations practical where incremental insert-trigger views fall short, and they can also serve as cron-style import/export jobs chained with DEPENDS. In the IMDB example, a refreshable view cuts an actor-summary query from 1.2 s to 3 ms. The release also speeds up SELECT ... FINAL by splitting data into non-intersecting sorting-key ranges, which are processed in parallel without merge logic, so only intersecting ranges pay the merge cost and merges are skipped across partitions when the partition key is a prefix of the sorting key.
- ClickHouse Release 23.8
ClickHouse mediumAdept
ClickHouse 23.8 makes file reads much faster by using Parquet row-group min/max statistics to skip data, answering count() from file metadata, and pruning files via the _file virtual column without reading them. On a 126GiB PyPI Parquet dataset in GCS, a count dropped from 26.5s to 11.4s, a time-range filter from 84s to 35s, and a 10% filename sample from 4.6s to 0.6s. The release also adds the S3Queue table engine for streaming ingestion from S3. It tracks processed files in ClickHouse Keeper using an unordered mode (with TTL and file-count limits) or an ordered mode keyed on filenames. Direct querying of zip, tar and 7z archives via the file function is also new.