---
title: "OLTP is expensive, you can ClickHouse it."
description: "Data that has stopped changing doesn't need Postgres's ACID machinery, so it can be offloaded to ClickHouse for roughly an order of magnitude better unit economics."
url: "https://swe.quest/articles/oltp-is-expensive-you-can-clickhouse-it-cd5e8f20ed5b5b0f"
canonical: "https://clickhouse.com/blog/oltp-is-expensive-you-can-clickhouse-it"
source: "ClickHouse"
published: "2026-10-15"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 6
tags: ["postgres","analytics","cost-optimization","storage-engines","event-driven"]
---

# OLTP is expensive, you can ClickHouse it.

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-10-15, 6 min read, Opinion. Original: [https://clickhouse.com/blog/oltp-is-expensive-you-can-clickhouse-it](https://clickhouse.com/blog/oltp-is-expensive-you-can-clickhouse-it)

## Summary

Data that has stopped changing doesn't need Postgres's ACID machinery, so it can be offloaded to ClickHouse for roughly an order of magnitude better unit economics. Postgres pays for durability, MVCC isolation and synchronous index maintenance on every write: a ~100-byte change touches several 8 KB pages and tens of KB of WAL. It also stores data in uncompressed row pages that thrash the cache once data outgrows RAM. The proposed pattern keeps writes and fresh-row reads in Postgres and replicates settled data to ClickHouse via CDC to serve reads and aggregations, with claimed 10–30× compression and ~100× cheaper aggregations. The cost is slower single-row reads and about a second of eventual consistency. ClickHouse Cloud features (NVMe Postgres, WalShadow CDC, the pg\_clickhouse FDW) are pitched as the way to implement it.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)

## Prerequisites

- ACID transactions ([easy posts on Consistency models](https://swe.quest/tags/consistency.md?difficulty=easy))
- Postgres MVCC basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- columnar databases ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

PostgreSQL, ClickHouse, ClickHouse Cloud, WalShadow, pg\_clickhouse, MVCC

## Related posts

- [Longbridge Technology simplifies their architecture and achieves 10x performance boost with ClickHouse](https://swe.quest/articles/longbridge-technology-simplifies-their-architecture-and-achieves-10x-e3a982c02b6e4b33.md): ClickHouse · 2025-03-17 · Medium · 8 min read · Analytics & OLAP, Databases, PostgreSQL, Payments & fintech
  Longbridge, a Singapore online brokerage, replaced a fragmented market-data stack of PostgreSQL (historical), Redis (real-time) and DynamoDB (high-write) with ClickHouse after evaluating it against TimescaleDB and TDengine for write throughput, Decimal support, time functions and aggregations.
- [Postgres at Open House NYC](https://swe.quest/articles/postgres-at-open-house-nyc-5b2de1c38cc64f40.md): ClickHouse · 2026-10-13 · Easy · 6 min read · PostgreSQL, Replication, Event-driven architecture, Analytics & OLAP
  ClickHouse used its Open House NYC keynote to launch WalShadow, an open-source engine that replicates Postgres into ClickHouse from the physical WAL instead of logical replication.
- [Vantage's Journey from Redshift and Postgres to ClickHouse](https://swe.quest/articles/vantage-s-journey-from-redshift-and-postgres-to-clickhouse-3bbe2f8581aa24cf.md): ClickHouse · 2023-07-13 · Easy · 5 min read · Analytics & OLAP, PostgreSQL, Databases, Cost optimization
  Vantage, a cloud cost platform handling billions of billing records, outgrew Postgres when constant deletes and reinserts kept vacuum running and pushed indexes out of memory.
- [How Socialpruf built a faster, more reliable data stack by replacing Neon with Postgres managed by ClickHouse](https://swe.quest/articles/how-socialpruf-built-a-faster-more-reliable-data-stack-by-replacing-neon-with-ba1cc6a2c844f08b.md): ClickHouse · 2026-03-17 · Easy · 7 min read · PostgreSQL, Analytics & OLAP, Schema migrations, Databases, Cost optimization
  Socialpruf, a social analytics platform ingesting hundreds of posts per second, moved customer-facing dashboard queries from Postgres to ClickHouse via CDC, cutting multi-second load times to millisecond aggregations.
- [PostgreSQL + ClickHouse as the Open Source unified data stack](https://swe.quest/articles/postgresql-clickhouse-as-the-open-source-unified-data-stack-2760f19ba52907df.md): ClickHouse · 2026-01-27 · Easy · 5 min read · PostgreSQL, Analytics & OLAP, Event-driven architecture, Replication
  An open source stack pairs PostgreSQL as the transactional system of record with ClickHouse for analytics, connected by PeerDB for change data capture and the pg\_clickhouse extension, which transparently offloads analytical queries from Postgres to ClickHouse.

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)
