How Physical Intelligence unified its robotics data stack with Postgres managed by ClickHouse
Physical Intelligence, a robotics foundation-model lab, split its data into raw petabyte-scale training data, transactional data needing ACID guarantees (under 100M rows), and high-cardinality metadata and annotations (10 to 100 billion rows). A single RDS Postgres instance full of JSONB columns could not handle both workloads, so the team moved to Postgres managed by ClickHouse, using ClickPipes to replicate operational data into ClickHouse for analytics. On the ClickHouse side, ReplacingMergeTree handles insert-heavy annotation writes, JSONB fields were flattened into sparse columnar tables, and materialized views cut query latency and database load. They also isolate read and write compute and put PgBouncer in front of batch jobs.
Related posts
- Scaling SaaS security: Reco’s migration from Postgres to ClickHouse Cloud
ClickHouse mediumAdept
Reco, a SaaS security platform ingesting 10-12 billion JSON events weekly, moved over 90% of its workload from Postgres to ClickHouse Cloud. Running both databases synced via CDC had made schema migrations, updates, deletes and VACUUM painful. Reco replaced RDBMS features with ReplacingMergeTree and CollapsingMergeTree for upserts and deletes, idempotency and eventual consistency instead of transactions, and tenant-level atomic materialized view refreshes via REPLACE PARTITION. Further gains came from compute-compute separation, spill-to-disk settings, parallel_distributed_insert_select=2 (cutting resource needs by a third) and data-skipping indexes, plus using the EmbeddedRocksDB engine as a streaming state store in place of Spark state and Redis.
- How we migrated Clera’s 500 GB production database to ClickHouse Managed Postgres overnight
ClickHouse mediumAdept
Clera moved a 500 GB, 500+ table production Postgres database from the EU to the US overnight onto ClickHouse Managed Postgres, with production traffic still running, using two parallel ClickPipes pipelines. The vendor choice followed a replay of their real workload (hot reads, point lookups, background analytics) on Supabase, Neon, PlanetScale and ClickHouse, plus sysbench TPC-C at 8–128 threads. Local NVMe storage beat network-attached storage, with 16–42% higher TPS than PlanetScale out of the box, and CPU fell from days at 100% to 10–20%. The hard parts were extension portability, restoring triggers, rebuilding indexes, resequencing tables, and doing parity checks before cutover.
- A universal interface: How QuintoAndar made ClickHouse plug-and-play with managed Postgres
ClickHouse easyNovice
QuintoAndar's customer data platform replaced a Lambda architecture (a Postgres hot layer plus Kafka Connect into a Delta landing zone processed by 24/7 Databricks jobs with costly MERGE INTO deduplication) by having its event gateway write about 900 million monthly events directly into ClickHouse Cloud, which also serves roughly 300 million API requests a month with sub-second reads. Hightouch's Customer Studio doesn't support ClickHouse as a source, so the team put ClickHouse Managed Postgres in front of it. The pg_clickhouse extension exposes ClickHouse tables as foreign tables, pushes joins and aggregations down to ClickHouse, and keeps Hightouch's Lightning Sync state tables in Postgres. The team reports negligible overhead from the extra hop, and any Postgres-compatible tool can now reach ClickHouse.
- How Infinitas Learning uses ClickHouse Managed Postgres to process billions of events for 1.6M unique learners
ClickHouse mediumAdept
Infinitas Learning runs transactional learner-result processing on Postgres, with PL/pgSQL functions serving as the API in place of an earlier Kafka/Flink event-sourced pipeline, and customer-facing analytics on ClickHouse. Migrating Postgres from Neon to ClickHouse Managed Postgres took two days: 750 GB copied in 16 hours and a zero-downtime cutover via logical replication. P50 fell to double-digit microseconds. On the analytics side, tail latency spikes of up to 13 s came from cache misses on a high-cardinality UUID primary key combined with continuous inserts. The team self-hosted ClickHouse, returned to Cloud after merge and read tuning with support, and then used distributed cache prewarming to bring P99 to 410 ms against a 500 ms SLA.
- How Kami scaled from 80M to nearly 2B events per week with ClickHouse
ClickHouse mediumAdept
Kami's Postgres event tracking (Rails writing JSONB rows, queried via Redash) collapsed when COVID pushed weekly events from about 80M to nearly 2B. Read replicas, a message queue and NVMe storage only delayed the problem, and Citus and CDC tools like Debezium could not keep up. The team moved to ClickHouse using a custom Java Kafka consumer that turned JSON into structured columns, plus a manual backfill of historical events. They later added MaterializedPostgreSQL and Kafka syncs for production and CockroachDB CRM data, and built dbt daily per-user rollups that cut DAU queries from 3-4 minutes over 140B rows to about 1 second over 1.3B rows.