---
title: "ClickHouse Release 24.7"
description: "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."
url: "https://swe.quest/articles/clickhouse-release-24-7-ceb1a9a93abff1bb"
canonical: "https://clickhouse.com/blog/clickhouse-release-24-07"
source: "ClickHouse"
published: "2024-08-09"
difficulty: "medium"
kind: "Release"
reading_minutes: 12
tags: ["query-engines","analytics","performance","sql"]
---

# ClickHouse Release 24.7

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2024-08-09, 12 min read, Release. Original: [https://clickhouse.com/blog/clickhouse-release-24-07](https://clickhouse.com/blog/clickhouse-release-24-07)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Query engines](https://swe.quest/tags/query-engines.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- SQL joins ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- hash join vs merge join
- ClickHouse MergeTree primary keys ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, ASOF JOIN, parallel hash join, optimize\_read\_in\_order, ClickBench, percent\_rank

## Related posts

- [How ClickHouse became fast at joins](https://swe.quest/articles/how-clickhouse-became-fast-at-joins-68de042e0ff6c22e.md): ClickHouse · 2026-06-03 · Hard · 15 min read · Query engines, Analytics & OLAP, Performance engineering, SQL
  ClickHouse became 26× faster on the join-heavy TPC-H SF100 workload between 22.4 and 26.4.
- [ClickHouse Release 24.11](https://swe.quest/articles/clickhouse-release-24-11-6fda281750a6cdc4.md): ClickHouse · 2024-12-06 · Medium · 6 min read · Analytics & OLAP, Query engines, SQL, Vector search, Performance engineering
  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.
- [ClickHouse Release 24.12](https://swe.quest/articles/clickhouse-release-24-12-a4df30e6ccdd0296.md): ClickHouse · 2025-01-09 · Medium · 15 min read · Analytics & OLAP, Query engines, Performance engineering, SQL
  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.
- [ClickHouse Joins Under the Hood - Hash Join, Parallel Hash Join, Grace Hash Join](https://swe.quest/articles/clickhouse-joins-under-the-hood-hash-join-parallel-hash-join-grace-hash-join-eba0126b891cf1aa.md): ClickHouse · 2023-04-20 · Medium · 22 min read · Query engines, Analytics & OLAP, Performance engineering, SQL
  ClickHouse implements three in-memory hash-table-based join algorithms within its parallel query pipeline.
- [ClickHouse Release 25.1](https://swe.quest/articles/clickhouse-release-25-1-dbd3d08d261fe532.md): ClickHouse · 2025-02-07 · Medium · 15 min read · Query engines, Analytics & OLAP, Performance engineering, Concurrency
  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.

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)
