---
title: "How Pump uses ClickHouse Cloud to bring cloud costs into focus"
description: "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."
url: "https://swe.quest/articles/how-pump-uses-clickhouse-cloud-to-bring-cloud-costs-into-focus-c7c5f0c4554ef0f2"
canonical: "https://clickhouse.com/blog/pump"
source: "ClickHouse"
published: "2025-12-02"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["analytics","cost-optimization","data-pipelines","postgres","cloud"]
---

# How Pump uses ClickHouse Cloud to bring cloud costs into focus

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-12-02, 6 min read, Case study. Original: [https://clickhouse.com/blog/pump](https://clickhouse.com/blog/pump)

## Summary

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.

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)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- columnar OLAP databases ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- ClickHouse MergeTree basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- Parquet files

## Keywords

ClickHouse Cloud, Pump View, PostgreSQL, Parquet, ReplacingMergeTree, AWS Cost Explorer, Amazon S3

## Related posts

- [“Just OLAP it”: How Ramp rebuilt its analytics platform on ClickHouse Cloud](https://swe.quest/articles/just-olap-it-how-ramp-rebuilt-its-analytics-platform-on-clickhouse-cloud-36298842faab88cc.md): ClickHouse · 2026-01-20 · Medium · 5 min read · Analytics & OLAP, Event-driven architecture, Data pipelines, PostgreSQL, Queues & messaging
  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.
- [98% faster queries, 50% lower cloud costs: Verihubs’ journey from Postgres to ClickHouse](https://swe.quest/articles/98-faster-queries-50-lower-cloud-costs-verihubs-journey-from-postgres-to-f6535061aff525b1.md): ClickHouse · 2026-07-06 · Medium · 6 min read · Analytics & OLAP, Data pipelines, PostgreSQL, Event-driven architecture
  Verihubs replaced a Postgres warehouse fed by daily Airflow batch pulls with a ClickHouse-based real-time OLAP stack.
- [Why m3ter chose ClickHouse Cloud](https://swe.quest/articles/why-m3ter-chose-clickhouse-cloud-3bab684612a2e50e.md): ClickHouse · 2025-01-14 · Medium · 16 min read · Analytics & OLAP, Databases, Performance engineering, Cost optimization, Payments & fintech
  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.
- [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.
- [OLTP is expensive, you can ClickHouse it.](https://swe.quest/articles/oltp-is-expensive-you-can-clickhouse-it-cd5e8f20ed5b5b0f.md): ClickHouse · 2026-10-15 · Easy · 6 min read · PostgreSQL, Analytics & OLAP, Cost optimization, Storage engines, Event-driven architecture
  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.

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)
