---
title: "How Shipsidekick replaced Neon with ClickHouse Managed Postgres for 10x faster queries and better reliability"
description: "Shipsidekick, a logistics platform, replaced Neon with ClickHouse Managed Postgres after struggling with frequent outages, pool exhaustion, and slow support. The migration took a single weekend, with ClickPipes replicating 500 GB of data in 4-5 hours. Since the move, CPU usage dropped from 100% to 5-10%, cache hit rate rose from 30-35% to 99%, and queries run about 10x faster. The team resolved a partial unique index conflict during replication by dropping and re-creating the index. They also implemented timeouts on a read-only role to prevent AI agent queries from impacting primary performance."
---

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

[Clickhouse](https://yomu.fyi/company/clickhouse) · Oct 23, 2026

**Type:** Problem & solution

## Summary

Shipsidekick, a logistics platform, replaced Neon with ClickHouse Managed Postgres after struggling with frequent outages, pool exhaustion, and slow support. The migration took a single weekend, with ClickPipes replicating 500 GB of data in 4-5 hours. Since the move, CPU usage dropped from 100% to 5-10%, cache hit rate rose from 30-35% to 99%, and queries run about 10x faster. The team resolved a partial unique index conflict during replication by dropping and re-creating the index. They also implemented timeouts on a read-only role to prevent AI agent queries from impacting primary performance.

## Context

Shipsidekick is a logistics platform combining warehouse, order, and transportation management. It was built as a Next.js app on Vercel with Neon as its Postgres provider. The team faced frequent outages, pool exhaustion issues, high CPU and RAM saturation, slow support responses, and a cache hit rate of only 30-35%. They evaluated PlanetScale but found it too expensive due to its requirement for two replicas.

## Approach / What changed

Shipsidekick migrated from Neon to ClickHouse Managed Postgres by enabling logical replication on Neon, creating a ClickPipe in the ClickHouse console, and letting it replicate approximately 500 GB of data in 4-5 hours. They resolved a partial unique index conflict by dropping the index, letting replication finish, and re-creating it. They also implemented statement and transaction timeouts on a read-only role to prevent AI agent queries from impacting primary performance.

## Takeaways

- Shipsidekick’s cache hit rate improved from 30-35% on Neon to 99% on ClickHouse Managed Postgres, and CPU usage dropped from 100% to 5-10%.
- ClickHouse Managed Postgres requires only one standby replica for high availability, reducing costs compared to providers that require two replicas.
- During replication, a partial unique index conflict was resolved by dropping the index, letting replication finish, and re-creating it; ClickPipes handled the interruption gracefully without data loss.

## FAQ

### How long did the migration from Neon to ClickHouse Managed Postgres take?

The migration took a single weekend. ClickPipes replicated about 500 GB of data in 4-5 hours, which was faster than the estimated day and a half.

### What issue did Shipsidekick face during replication and how was it resolved?

They encountered a cron job that ran multiple transactions which, when replicated mid-flight, tripped a partial unique index on the invoices table. The fix was to drop the index, let replication finish, and then re-create it.

### How did Shipsidekick prevent AI agent queries from affecting primary database performance?

They implemented statement and transaction timeouts on the read-only role used by AI agents. This prevented long-running AI queries from consuming resources and impacting primary database performance.

**Tags:** [ClickHouse](https://yomu.fyi/topic/clickhouse), [Migrations](https://yomu.fyi/topic/migration), [Neon](https://yomu.fyi/topic/neon), [Performance](https://yomu.fyi/topic/performance), [Postgres](https://yomu.fyi/topic/postgres)

- Source: [Clickhouse](https://clickhouse.com/blog/shipsidekick-neon-to-clickhouse-managed-postgres)
- Source URL: https://clickhouse.com/blog/shipsidekick-neon-to-clickhouse-managed-postgres
- Ingested by Yomu: 2026-10-23T12:01:09.771Z

[Read original post](https://clickhouse.com/blog/shipsidekick-neon-to-clickhouse-managed-postgres)
