---
title: "ClickHouse Release 25.7"
description: "ClickHouse 25.7 adds standard SQL UPDATE and DELETE built on lightweight \"patch parts\"."
url: "https://swe.quest/articles/clickhouse-release-25-7-3deecef07d4b1ccf"
canonical: "https://clickhouse.com/blog/clickhouse-release-25-07"
source: "ClickHouse"
published: "2025-08-08"
difficulty: "medium"
kind: "Release"
reading_minutes: 13
tags: ["analytics","query-engines","storage-engines","performance"]
---

# ClickHouse Release 25.7

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

## Summary

ClickHouse 25.7 adds standard SQL UPDATE and DELETE built on lightweight "patch parts". Instead of rewriting columns, small immutable parts are applied during background merges and matched at query time, making declarative updates up to 1,000× faster in ClickHouse's benchmarks. count() GROUP BY aggregations now store the 64-bit count directly in the hash table cell, skipping the memory arena and pointer indirection, which cut query time ~34% and memory ~21% on a 100M-row benchmark. The release also brings four hash-join optimizations: tighter single-key loops, faster OR-condition joins, no repeated hashing, and precisely sized result buffers, worth roughly 1.4–1.8× speedups, plus AI-powered SQL generation in clickhouse-client via a \`??\` prefix.

Written by swe.quest, not by the author.

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

## Topics

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

## Prerequisites

- SQL aggregations and joins ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- LSM-style merge trees ([easy posts on Storage engines](https://swe.quest/tags/storage-engines.md?difficulty=easy))
- hash tables

## Keywords

ClickHouse, ReplacingMergeTree, patch parts, hash join, clickhouse-local

## Related posts

- [How we built fast UPDATEs for the ClickHouse column store – Part 2: SQL-style UPDATEs](https://swe.quest/articles/how-we-built-fast-updates-for-the-clickhouse-column-store-part-2-sql-style-412c85fd8f57d493.md): ClickHouse · 2025-07-24 · Hard · 20 min read · Storage engines, Analytics & OLAP, Databases, SQL
  ClickHouse implemented standard SQL UPDATE in its MergeTree column store by evolving from classic mutations (which rewrite whole affected columns and hard-link unchanged ones) through lightweight DELETEs via a \_row\_exists mask column and on-the-fly in-memory updates, to patch parts.
- [How we made ClickHouse UPDATEs 1,000× faster (Part 3: Benchmarks)](https://swe.quest/articles/how-we-made-clickhouse-updates-1-000-faster-part-3-benchmarks-0d540536665217da.md): ClickHouse · 2025-08-07 · Hard · 17 min read · Analytics & OLAP, Storage engines, Performance engineering, Databases
  ClickHouse's new standard SQL UPDATEs, implemented as lightweight patch parts, make changes visible up to ~1,000–1,700× faster than classic mutations on a 600M-row TPC-H lineitem table: one bulk update dropped from about 100 s to 60 ms. The benchmark compares classic mutations, on-the-fly mutations, lightweight updates and ReplacingMergeTree inserts for both bulk and single-row updates, measuring time to visibility and worst-case query slowdown before merges.
- [ClickHouse Release 25.11](https://swe.quest/articles/clickhouse-release-25-11-bcf7d5c39dac13b0.md): ClickHouse · 2025-12-05 · Medium · 14 min read · Analytics & OLAP, Query engines, Performance engineering, Concurrency
  ClickHouse 25.11 ships 24 features, 27 performance optimizations and 97 bug fixes.
- [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.
- [Handling Updates and Deletes in ClickHouse](https://swe.quest/articles/handling-updates-and-deletes-in-clickhouse-197a09a41f4d2486.md): ClickHouse · 2023-03-10 · Medium · 13 min read · Analytics & OLAP, Databases, Storage engines, SQL
  ClickHouse offers several ways to modify mostly-immutable analytical data, each with different costs.

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)
