Skip to content

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

ClickHouse 8 min read Case study easyNovice

How Ridgeline unified Iceberg and ClickHouse into one analytics layer for investment management

Ridgeline, an all-in-one investment management platform, moved performance analytics off a shared Postgres cluster onto ClickHouse Cloud. Postgres could not handle inception-to-date reports over decades of daily, 40-80-column P&L data across thousands of portfolios for customers 10-40x larger than before. The architecture writes accounting data directly to ClickHouse, replicates vendor data from Postgres via ClickPipes CDC, and lands multi-billion-row historical uploads in Iceberg via Spark, reading older data through ClickHouse's Iceberg connector. Materialized views over ReplacingMergeTree serve read-optimized data, so report batches finish in minutes instead of hours and the company has more than doubled its live customers.

Assumes: OLAP vs OLTP databasesmaterialized views

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.

  • How Jump Trading uses ClickHouse with Iceberg for analytics

    ClickHouse mediumAdept

    Jump Trading runs a self-managed, on-prem ClickHouse cluster of tens of nodes as the system of record for petabyte-scale trading logs, ingesting hundreds of TB per day with peaks of 10M rows/sec and a sub-20-second p99, reconciled daily for zero data loss. Raw logs flow through Redpanda to sharded bare-metal ingestors, distributed tables shard the fact tables, and replicated tables hold reference data. To serve heavy batch and HPC readers without loading the real-time cluster, Jump added a Netflix-style double-write pipeline: Kafka feeds parallel consumers writing to ClickHouse and to Iceberg Parquet on object storage. ClickHouse queries both, keeping the same access control and observability, and a 20-node Iceberg setup scanned 376 billion rows in 9.6 seconds.

  • How Polymarket scaled their data stack with Postgres and ClickHouse

    ClickHouse mediumAdept

    Polymarket moved analytical workloads off its production PostgreSQL cluster and onto ClickHouse after internal Hex dashboards started timing out and scheduled leaderboard aggregations competed with transactional trading traffic. The new warehouse combines three sources: on-chain trades streamed in through Goldsky's ClickHouse sink, S3 clickstream files ingested with ClickPipes, and off-chain metadata pulled on a schedule from Postgres via the PostgreSQL table engine into MergeTree tables. Leaderboards are now built with refreshable materialized views and served by a Go API through parameterized views, which enabled per-category and per-time-period leaderboards. The leaderboard migration took about two weeks and serves hundreds of requests per second at roughly 25 ms average latency.

  • PostgreSQL + ClickHouse as the Open Source unified data stack

    ClickHouse easyNovice

    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. Two patterns are described: CDC replication for operational analytics on application data, and split-writes for high-volume logs, metrics and events that never need to live in Postgres. Adopting it involves creating a ClickHouse database, replicating via PeerDB, configuring pg_clickhouse and pointing queries at its tables, so application changes stay minimal. A managed version in ClickHouse Cloud swaps PeerDB for ClickPipes and preinstalls the extension.

  • Longbridge Technology simplifies their architecture and achieves 10x performance boost with ClickHouse

    ClickHouse mediumAdept

    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. Historical data was migrated via ClickHouse external tables over OSS and Alibaba Cloud DTS, which merged 128 PostgreSQL sub-tables into one table and converted varchar fields to Decimal; Redis was kept for real-time data with ticker-level writes moved to ClickHouse. Reported results include about 5x compression (500GB down to 100GB), 10x faster single-table writes than PostgreSQL, and built-in aggregation and window functions replacing scheduled statistics jobs.

The quest for software engineering knowledge.

Look:
Layout: