How Infinitas Learning uses ClickHouse Managed Postgres to process billions of events for 1.6M unique learners
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.
Related posts
- 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.
- How Socialpruf built a faster, more reliable data stack by replacing Neon with Postgres managed by ClickHouse
ClickHouse easyNovice
Socialpruf, a social analytics platform ingesting hundreds of posts per second, moved customer-facing dashboard queries from Postgres to ClickHouse via CDC, cutting multi-second load times to millisecond aggregations. It later migrated its 0.5 TB Postgres from Neon to Postgres managed by ClickHouse. The drivers were Neon connection dropouts and cross-service network transfer charges exceeding half of compute cost. After a failed logical-replication attempt, PeerDB mirrored the data in hours and was validated for a week before cutover, and PgBouncer absorbed thousands of connections that exceeded max_connections. Reported results are about 30% faster Postgres queries overall (up to 5x on some) and no connectivity issues since the switch.
- Postgres at Open House NYC
ClickHouse easyNovice
ClickHouse used its Open House NYC keynote to launch WalShadow, an open-source engine that replicates Postgres into ClickHouse from the physical WAL instead of logical replication. It decodes WAL outside the source and uses a schema-only shadow Postgres to track DDL, effectively making ClickHouse an analytical physical standby. On 8-vCPU instances it showed about 200 ms commit-to-visible latency and 300K rows/s, versus about 10 s and 120K rows/s for PeerDB. The keynote also opened a Google Cloud private preview of ClickHouse Managed Postgres and released a chdb Postgres extension that extends COPY to import from S3, GCS and Azure and outperformed DuckDB-based extensions on the NYC Taxi import benchmark.
- 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 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.