ClickHouse Release 24.11
ClickHouse 24.11 makes parallel hash join the default join algorithm, building several hash tables concurrently for speed at the cost of more memory, and adds zero-copy block scattering between threads. ORDER BY WITH FILL gains a STALENESS modifier that stops generating filler rows once the gap from the previous real row exceeds a threshold. The HTTP interface now surfaces errors that happen mid-stream as a non-zero client exit code, and a new mark_cache_prewarm_ratio setting plus a SYSTEM PREWARM MARK CACHE command let the server load index marks into memory eagerly. An experimental BFloat16 type speeds up vector search: a full-scan nearest-neighbor query over 28M 384-dimensional vectors took 0.061s versus 0.146s with Float32.
Related posts
- ClickHouse Release 24.7
ClickHouse mediumAdept
ClickHouse 24.7 adds buffering for read-in-order queries (read_in_order_use_buffering), restoring read parallelism when ORDER BY matches the primary key. In the example it gives a 5x speedup at 3x the memory, and up to 10x with high-selectivity filters. Parallel hash join now caches final hash table sizes per right table and join keys so later runs pre-allocate and skip intermediate resizes. ASOF JOIN now supports the full sorting merge join algorithm, which on the ClickBench hits dataset ran over 2x faster with less than half the peak memory of hash join. The release also adds the percent_rank window function.
- ClickHouse Release 24.12
ClickHouse mediumAdept
ClickHouse 24.12 adds LIKE and unknown-value equality/IN support for Enums, an experimental descending MergeTree sorting key, JSON subcolumns as primary key columns, Iceberg REST catalog (Unity, Polaris) and schema evolution support, and automatic JOIN side swapping via query_plan_join_swap_table. On 100M Bluesky events, ordering by JSON subcolumns made a filtered query about 50x faster with 150x less memory. The now-default parallel hash join ran TPC-H Q3 at scale factor 100 about 8x faster than the plain hash join. The auto swap mode picks the smaller table as the hash-table build side to save memory and time.
- ClickHouse Joins Under the Hood - Hash Join, Parallel Hash Join, Grace Hash Join
ClickHouse mediumAdept
ClickHouse implements three in-memory hash-table-based join algorithms within its parallel query pipeline. The default hash join builds a single hash table from the right-hand table in one thread, so with a 100M-row table on the right it ran 5x slower and used 8.95 GiB versus 716 MiB with the small table on the right. Parallel hash join splits right-side rows into max_threads buckets and fills that many hash tables concurrently, roughly halving runtime at more than double the memory. Grace hash join spills buckets to disk to stay within memory limits without requiring sorting, and the post uses EXPLAIN pipeline graphs and query_log statistics to show each algorithm's behavior.
- 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.
- ClickHouse Release 25.1
ClickHouse mediumAdept
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.