How Shipsidekick replaced Neon with ClickHouse Managed Postgres for 10x faster queries and better reliability
Shipsidekick, a logistics platform built on Next.js and Vercel, moved its Postgres database from Neon to ClickHouse Managed Postgres after repeated outages. The failures came from connection pool exhaustion across Prisma, Vercel Fluid compute and Neon's PgBouncer, at around 3,000 connections. ClickPipes logical replication moved 500 GB in 4-5 hours. One snag was a partial unique index tripped by mid-flight transactions, fixed by dropping the index and re-creating it after replication. With the bundled PgBouncer, NVMe storage and a single async standby, CPU fell from 100% to 5-10%, cache hit rate rose from 30-35% to 99%, and queries ran about 10x faster. AI agents querying the primary caused CPU spikes, which the team handled with statement timeouts and later a dedicated read replica.
Related posts
- 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.
- 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 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.
- PostgresBench: A Reproducible Benchmark for Postgres Services
ClickHouse mediumAdept
PostgresBench is an open, reproducible benchmark for managed Postgres services built on pgbench's TPC-B-like workload (256 clients, 16 threads, 10-minute runs, three runs each) at ~100 GB and ~500 GB scale factors, with default configs, HA disabled and all services in us-east-2. In the first cohort, ClickHouse's NVMe-backed managed Postgres reached about 28.7K TPS on 16 vCPU/64 GB at 100 GB, versus 14.8K for Crunchy Bridge, 12.6K for Aurora, 8.6K for Neon and 8.1K for RDS, and held about 26K TPS at 500 GB. ClickHouse attributes the lead to co-located local NVMe storage, which avoids network round trips on every fsync and WAL commit in write-heavy workloads. Scripts and raw JSON results are on GitHub for verification and community submissions, though the vendor-run setup and absence of pricing comparisons are worth weighing.
- Benchmarking NVMe-backed Managed Postgres: PlanetScale and ClickHouse
ClickHouse mediumAdept
On identical AWS r8gd instances with local NVMe and quorum synchronous replication, ClickHouse Managed Postgres outperformed PlanetScale Metal in a pgbench TPC-B-like workload. Throughput was 34% higher at 4 vCPU and 51–54% higher at 16 vCPU on 100 GB and 500 GB datasets, with lower average latency. The gap is attributed to configuration rather than hardware: 2 MB huge pages (about 12% on their own), lz4 WAL compression, and max_wal_size sized to the instance (up to 256 GB) versus PlanetScale's 8 GB with huge pages and WAL compression disabled. The results come from a vendor benchmark, and the authors advise validating with your own workload.