---
title: "How Shipsidekick replaced Neon with ClickHouse Managed Postgres for 10x faster queries and better reliability"
description: "Shipsidekick, a logistics platform built on Next.js and Vercel, moved its Postgres database from Neon to ClickHouse Managed Postgres after repeated outages."
url: "https://swe.quest/articles/how-shipsidekick-replaced-neon-with-clickhouse-managed-postgres-for-10x-faster-4525525384ac6471"
canonical: "https://clickhouse.com/blog/shipsidekick-neon-to-clickhouse-managed-postgres"
source: "ClickHouse"
published: "2026-10-23"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["postgres","databases","performance","serverless"]
---

# How Shipsidekick replaced Neon with ClickHouse Managed Postgres for 10x faster queries and better reliability

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-10-23, 8 min read, Case study. Original: [https://clickhouse.com/blog/shipsidekick-neon-to-clickhouse-managed-postgres](https://clickhouse.com/blog/shipsidekick-neon-to-clickhouse-managed-postgres)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)

## Prerequisites

- Postgres connection pooling ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Serverless functions ([easy posts on Serverless](https://swe.quest/tags/serverless.md?difficulty=easy))
- Logical replication ([easy posts on Replication](https://swe.quest/tags/replication.md?difficulty=easy))

## Keywords

ClickHouse Managed Postgres, Neon, PgBouncer, ClickPipes, Vercel Fluid compute, Prisma, PlanetScale

## Related posts

- [How Socialpruf built a faster, more reliable data stack by replacing Neon with Postgres managed by ClickHouse](https://swe.quest/articles/how-socialpruf-built-a-faster-more-reliable-data-stack-by-replacing-neon-with-ba1cc6a2c844f08b.md): ClickHouse · 2026-03-17 · Easy · 7 min read · PostgreSQL, Analytics & OLAP, Schema migrations, Databases, Cost optimization
  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.
- [How we migrated Clera’s 500 GB production database to ClickHouse Managed Postgres overnight](https://swe.quest/articles/how-we-migrated-clera-s-500-gb-production-database-to-clickhouse-managed-f4ed327a88d71cd7.md): ClickHouse · 2026-10-08 · Medium · 8 min read · PostgreSQL, Databases, Performance engineering, Schema migrations, Storage systems
  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.
- [How Infinitas Learning uses ClickHouse Managed Postgres to process billions of events for 1.6M unique learners](https://swe.quest/articles/how-infinitas-learning-uses-clickhouse-managed-postgres-to-process-billions-of-eb20c949118daba4.md): ClickHouse · 2026-11-16 · Medium · 9 min read · Analytics & OLAP, PostgreSQL, Performance engineering, Caching, Databases
  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.
- [PostgresBench: A Reproducible Benchmark for Postgres Services](https://swe.quest/articles/postgresbench-a-reproducible-benchmark-for-postgres-services-3a30213211ea6b71.md): ClickHouse · 2026-04-02 · Medium · 9 min read · PostgreSQL, Performance engineering, Storage systems, Cloud platforms
  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.
- [Benchmarking NVMe-backed Managed Postgres: PlanetScale and ClickHouse](https://swe.quest/articles/benchmarking-nvme-backed-managed-postgres-planetscale-and-clickhouse-9c60dc3e275ce910.md): ClickHouse · 2026-07-30 · Medium · 4 min read · PostgreSQL, Performance engineering, Databases, Cloud platforms
  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.

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)
