ClickHouse: Slash OLTP Costs with Data Offloading
Alps Wang
Oct 16, 2026 · 2 views
The Cost of ACID: Unpacking OLTP Expense
The article compellingly argues that traditional OLTP databases like PostgreSQL incur significant overhead due to ACID compliance, especially for data that has become largely static or 'settled.' The core innovation proposed is offloading this settled data to ClickHouse, a columnar database optimized for analytical workloads. This hybrid approach leverages the strengths of both systems: PostgreSQL for active, transactional data and ClickHouse for cost-effective storage and querying of historical or infrequently accessed data. The economic benefits are substantial, promising an order of magnitude improvement in unit economics as data volume grows, particularly in the context of the burgeoning AI data explosion. The article effectively outlines the technical mechanisms within PostgreSQL that contribute to its high cost (WAL, MVCC, index maintenance) and contrasts them with ClickHouse's more efficient, albeit eventually consistent, architecture for settled data.
However, a key concern lies in the practical implementation of maintaining data synchronization and consistency between the two systems, especially for data that transitions from active to settled. While ClickHouse Cloud's WalShadow and FDWs are mentioned as solutions, the complexity of managing a dual-database architecture, even with managed services, can be a significant engineering hurdle. The article touches on this by acknowledging that building such a system is 'challenging.' Furthermore, the 'eventual consistency' of ClickHouse, while acceptable for settled data, needs careful consideration for specific use cases where near-real-time access to historically settled data might still be critical. The proposed solution is most beneficial for applications where a clear demarcation between actively changing and read-only data exists and where the cost savings outweigh the added architectural complexity.
Key Points
- Traditional OLTP databases like PostgreSQL incur significant costs due to ACID compliance mechanisms (WAL, MVCC, indexing).
- Data that becomes largely static ('settled') still incurs OLTP costs, creating an economic inefficiency.
- Offloading settled data to ClickHouse, a columnar database, can reduce storage and query costs by an order of magnitude.
- ClickHouse offers better unit economics for large datasets that don't require immediate transactional consistency.
- A hybrid architecture (Postgres for active, ClickHouse for settled) leverages the strengths of both systems.
- Challenges include data synchronization between systems and managing architectural complexity.

Related Articles
Comments (0)
No comments yet. Be the first to comment!
