Skip to content

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

ClickHouse 15 min read Release mediumAdept

ClickHouse Release 25.1

ClickHouse 25.1 speeds up the default parallel hash join by building N two-level hash tables whose 256 buckets are filled by threads in a non-overlapping way, then merging them in constant time into one shared table. The probe phase can then read that table concurrently without splitting input blocks, and it uses a single hash function where the old design used two. Benchmarks on a 32-vCPU m6i.8xlarge show roughly 37% faster joins on a synthetic query and 32% faster on a TPC-H SF100 lineitem/orders join. The release also adds the add_minmax_index_for_numeric_columns setting, which creates MinMax skip indexes on every numeric column, and it improves Merge tables and adds auto-increment support.

Related posts

  • ClickHouse Release 25.12

    ClickHouse hardMaster

    ClickHouse 25.12 ships 26 features, 31 performance optimizations and 129 bug fixes, led by three query-engine speedups. Top-N queries (ORDER BY … LIMIT N) now compare the running threshold against granule-level min/max skip-index metadata to skip granules before reading, cutting data read by one to two orders of magnitude and speeding queries 5–10×. Lazy materialization moved from row-by-row column fetches to a batched join-style step (JoinLazyColumnsStep), making a LIMIT 100,000 query about 75× faster (38.7s to 0.51s), and its default limit was raised from 10 to 10,000. An experimental DPsize dynamic-programming join reordering algorithm for INNER JOINs explores more join orders than the greedy approach and produces a better plan on a TPC-H eight-table query.

  • 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.

  • How ClickHouse became fast at joins

    ClickHouse hardMaster

    ClickHouse became 26× faster on the join-heavy TPC-H SF100 workload between 22.4 and 26.4. In the first year (4.4×) parallel hash join became the default, build and probe phases were optimized and two-table reordering was added. In the second year (another 6× with default settings) four changes landed: decorrelation of correlated subqueries, lazy column replication, runtime filters and statistics-based join reordering. Lazy replication represents repeated join outputs as dictionary indexes instead of copying wide strings (1.9× faster in a self-join benchmark). Runtime bloom/min-max filters built from build-side keys are applied as PREWHERE on the probe side (2.1× faster, peak memory cut from 1.24 GiB to 185 MiB).

  • ClickHouse Release 25.10

    ClickHouse mediumAdept

    ClickHouse 25.10 focuses on JOIN performance, adding lazy columns replication (an index column pointing at the original data instead of copying duplicated values), runtime Bloom filters built from the right-side join keys and applied as PREWHERE on the left side for parallel hash joins, push-down of OR conditions that reference both join sides, and automatic column statistics via auto_statistics_types to feed join reordering. Benchmarks on an m6i.8xlarge show a self-join over 20× faster with lazy replication, a TPC-H join 2.1× faster with ~7× less memory using runtime filters, and 24× faster with 60× less memory from disjunction push-down. The release also introduces the QBit bit-sliced vector type for query-time precision tuning, plus SQL additions such as general support for the <=> operator.

  • ClickHouse Release 25.2

    ClickHouse mediumAdept

    ClickHouse 25.2 ships 12 features, 15 performance optimizations and 72 bug fixes. The parallel hash join build phase no longer locks every hash table to check size limits when max_rows_in_join and max_bytes_in_join are unset. That removes thread contention and halves a synthetic 1-billion-row join from 12.3s to 6.3s on 32 cores. Parquet output now writes Bloom filters by default, costing about 10% in file size and speeding point lookups by 30-40%. The optimizer also infers transitive conditions, such as a < 5 from a < b < 5, so primary-key pruning can apply. The release adds a read-only Backup database engine, experimental Delta Lake support via the Delta Rust kernel, and compact JSON WithProgress streaming formats over HTTP.

The quest for software engineering knowledge.

Look:
Layout: