---
title: "ClickHouse Release 22.12"
description: "ClickHouse 22.12 adds a grace hash join algorithm that partitions both join sides into hash buckets spilled to disk, dynamically increasing the bucket count when the in-memory hash table exceeds max_bytes_in_join, so large joins run with bounded memory."
url: "https://swe.quest/articles/clickhouse-release-22-12-b9fac2d701130c5e"
canonical: "https://clickhouse.com/blog/clickhouse-release-22-12"
source: "ClickHouse"
published: "2022-12-19"
difficulty: "medium"
kind: "Release"
reading_minutes: 8
tags: ["query-engines","analytics","databases","identity-auth"]
---

# ClickHouse Release 22.12

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2022-12-19, 8 min read, Release. Original: [https://clickhouse.com/blog/clickhouse-release-22-12](https://clickhouse.com/blog/clickhouse-release-22-12)

## Summary

ClickHouse 22.12 adds a grace hash join algorithm that partitions both join sides into hash buckets spilled to disk, dynamically increasing the bucket count when the in-memory hash table exceeds max\_bytes\_in\_join, so large joins run with bounded memory. On a self-join of the hits dataset it beat partial\_merge on speed while using more memory, and stayed slower than hash and parallel\_hash. Tuning grace\_hash\_join\_initial\_buckets avoids re-bucketing. The release also adds regex-based password complexity rules, BSON input for mongodump files, GROUP BY ALL, and a Prometheus metrics endpoint for ClickHouse Keeper.

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)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)

## Prerequisites

- SQL joins ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- hash join basics

## Keywords

ClickHouse, grace hash join, BSON, ClickHouse Keeper, Prometheus, GROUP BY ALL, MongoDB

## Related posts

- [ClickHouse Newsletter January 2023: Better Safe Than Sorry](https://swe.quest/articles/clickhouse-newsletter-january-2023-better-safe-than-sorry-86f3c43fcf5ac992.md): ClickHouse · 2023-01-19 · Medium · 6 min read · Analytics & OLAP, Databases, Cryptography, SQL
  ClickHouse's January 2023 newsletter lists upcoming webinars and recaps the 22.12 release.
- [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 Release 25.2](https://swe.quest/articles/clickhouse-release-25-2-70e1ceccfb09d252.md): ClickHouse · 2025-03-07 · Medium · 8 min read · Analytics & OLAP, Query engines, Performance engineering, Data structures
  ClickHouse 25.2 ships 12 features, 15 performance optimizations and 72 bug fixes.
- [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)
