Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 6 min read Case study mediumAdept

How Pump uses ClickHouse Cloud to bring cloud costs into focus

Pump built Pump View, a multi-cloud cost visibility tool, on ClickHouse Cloud after deciding Postgres could not handle ingesting about 5 billion billing records (about 5 TB uncompressed) per day. AWS and GCP Parquet exports are loaded via the s3 table function in about 40 seconds per batch. Postgres tracks which versions of the data are live. Sparse user tags are handled by hashing keys across eight string and eight float columns, which cut I/O about 8x, though the team would now use ClickHouse's JSON type. Republished billing exports are made atomic by filtering queries on live mutation IDs stored in Postgres, and interval queries are simplified by normalizing every record into daily slices ordered by begin date.

Related posts

  • “Just OLAP it”: How Ramp rebuilt its analytics platform on ClickHouse Cloud

    ClickHouse mediumAdept

    Ramp moved customer-facing spend analytics off its Postgres monolith after enterprise customers' reports on a single card-transactions table began taking 40+ seconds, and now serves them in milliseconds from ClickHouse Cloud. The pipeline streams Postgres CDC via Debezium into per-table Kafka topics. Stateless Python enrichers denormalize the records, and a connector loads them into ReplacingMergeTree tables, with recurring OPTIMIZE and FINAL queries handling deduplication. A local benchmark of 60M transactions partitioned by business ID ran 16,000 randomized queries in 12 seconds, and a four-engineer pod shipped to production in about two months. The platform now backs in-app Reporting and Budgets, and Ramp plans to add enriched tables for every core data type.

  • 98% faster queries, 50% lower cloud costs: Verihubs’ journey from Postgres to ClickHouse

    ClickHouse mediumAdept

    Verihubs replaced a Postgres warehouse fed by daily Airflow batch pulls with a ClickHouse-based real-time OLAP stack. Kafka Connect and Debezium CDC stream data into MergeTree tables for append-only logs and ReplacingMergeTree tables for updatable rows. Materialized views and projections build daily and monthly rollups for reconciliation and invoicing, and Dagster handles complex detection jobs. Queries dropped from 20-30 minutes to 2-3 seconds, and cloud costs fell up to 50%. Lessons include designing ordering keys up front, choosing MergeTree engines carefully, expecting asynchronous mutations, and planning backfills because materialized views don't backfill automatically.

  • Why m3ter chose ClickHouse Cloud

    ClickHouse mediumAdept

    m3ter, a usage-based billing service, picked ClickHouse Cloud for its usage-data plane after proof-of-concept tests against Snowflake, Firebolt, Redshift and Aurora Postgres. Usage events had to stay unaggregated so bills could be recalculated after retrospective config changes. The tests scored each database on ingest rate, deduplication, query concurrency, export, deletion, scalability and cost. ClickHouse delivered 10x ingest, 17x QPS, 11.4x compression, sub-100ms queries (144ms vs Redshift's 3927ms at similar cost) and ~85% cost savings. Its weak spots were deduplication, which relies on background merges or FINAL and so needs pre-insert dedup, and heavier deletes than OLTP stores.

  • Vantage's Journey from Redshift and Postgres to ClickHouse

    ClickHouse easyNovice

    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. Redshift, tried next with Postgres as a cache, struggled with updates, needed data inserted in sort order, required expensive vacuum sort jobs, and forced billions of rows to be copied daily between the two systems. A 60-day migration to ClickHouse Cloud replaced the delete-and-reinsert pattern with ReplacingMergeTree and an incrementing import-version column, letting background merges handle updates. The result was double the resources at roughly Redshift's price, with query performance comparable to well-indexed pre-aggregated Postgres tables.

  • OLTP is expensive, you can ClickHouse it.

    ClickHouse easyNovice

    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.

The quest for software engineering knowledge.

Look:
Layout: