---
title: "How we made ClickHouse UPDATEs 1,000× faster (Part 3: Benchmarks)"
description: "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."
url: "https://swe.quest/articles/how-we-made-clickhouse-updates-1-000-faster-part-3-benchmarks-0d540536665217da"
canonical: "https://clickhouse.com/blog/updates-in-clickhouse-3-benchmarks"
source: "ClickHouse"
published: "2025-08-07"
difficulty: "hard"
kind: "Research"
reading_minutes: 17
tags: ["analytics","storage-engines","performance","databases"]
---

# How we made ClickHouse UPDATEs 1,000× faster (Part 3: Benchmarks)

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-08-07, 17 min read, Research. Original: [https://clickhouse.com/blog/updates-in-clickhouse-3-benchmarks](https://clickhouse.com/blog/updates-in-clickhouse-3-benchmarks)

## Summary

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. Lightweight updates add only about 12–15% average query overhead, rising to 39–121% in a rare join-mode fallback. On-the-fly mutations average 149% slowdown, and ReplacingMergeTree with FINAL averages about 280% slowdown with 20–200× the memory. ReplacingMergeTree inserts are the fastest way to write single rows, but lightweight updates give the best balance of write speed and query cost.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

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

## Prerequisites

- ClickHouse MergeTree parts ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- columnar storage basics
- background merges

## Keywords

ClickHouse, ReplacingMergeTree, patch parts, TPC-H, lightweight updates, mutations

## 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.
- [ClickHouse Release 25.7](https://swe.quest/articles/clickhouse-release-25-7-3deecef07d4b1ccf.md): ClickHouse · 2025-08-08 · Medium · 13 min read · Analytics & OLAP, Query engines, Storage engines, Performance engineering
  ClickHouse 25.7 adds standard SQL UPDATE and DELETE built on lightweight "patch parts".
- [You can’t UPDATE what you can’t find: ClickHouse vs PostgreSQL](https://swe.quest/articles/you-can-t-update-what-you-can-t-find-clickhouse-vs-postgresql-6396a03839ca899c.md): ClickHouse · 2025-08-13 · Medium · 15 min read · Analytics & OLAP, PostgreSQL, Performance engineering, Databases, Storage engines
  ClickHouse 25.7's SQL-standard UPDATEs were benchmarked against PostgreSQL 17.5 on identical hardware using the 600M-row TPC-H lineitem table, with cold and hot runs.
- [How we built fast UPDATEs for the ClickHouse column store – Part 1: Purpose-built engines](https://swe.quest/articles/how-we-built-fast-updates-for-the-clickhouse-column-store-part-1-purpose-built-477e921f016259fa.md): ClickHouse · 2025-07-22 · Medium · 12 min read · Analytics & OLAP, Storage engines, Databases
  ClickHouse avoids slow in-place row updates in its column store by expressing updates and deletes as inserts that get resolved during the background merges MergeTree already performs.
- [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)
