---
title: "How we migrated Clera’s 500 GB production database to ClickHouse Managed Postgres overnight"
description: "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."
url: "https://swe.quest/articles/how-we-migrated-clera-s-500-gb-production-database-to-clickhouse-managed-f4ed327a88d71cd7"
canonical: "https://clickhouse.com/blog/clera-migrates-to-clickhouse-managed-postgres"
source: "ClickHouse"
published: "2026-10-08"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["postgres","databases","performance","schema-migrations","storage-systems"]
---

# How we migrated Clera’s 500 GB production database to ClickHouse Managed Postgres overnight

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

## Summary

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.

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)
- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- logical replication ([easy posts on Replication](https://swe.quest/tags/replication.md?difficulty=easy))
- database benchmarking ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

ClickHouse Managed Postgres, ClickPipes, sysbench, TPC-C, PlanetScale, Supabase, Neon, NVMe

## 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 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.
- [Longbridge Technology simplifies their architecture and achieves 10x performance boost with ClickHouse](https://swe.quest/articles/longbridge-technology-simplifies-their-architecture-and-achieves-10x-e3a982c02b6e4b33.md): ClickHouse · 2025-03-17 · Medium · 8 min read · Analytics & OLAP, Databases, PostgreSQL, Payments & fintech
  Longbridge, a Singapore online brokerage, replaced a fragmented market-data stack of PostgreSQL (historical), Redis (real-time) and DynamoDB (high-write) with ClickHouse after evaluating it against TimescaleDB and TDengine for write throughput, Decimal support, time functions and aggregations.
- [How Shipsidekick replaced Neon with ClickHouse Managed Postgres for 10x faster queries and better reliability](https://swe.quest/articles/how-shipsidekick-replaced-neon-with-clickhouse-managed-postgres-for-10x-faster-4525525384ac6471.md): ClickHouse · 2026-10-23 · Medium · 8 min read · PostgreSQL, Databases, Performance engineering, Serverless
  Shipsidekick, a logistics platform built on Next.js and Vercel, moved its Postgres database from Neon to ClickHouse Managed Postgres after repeated outages.
- [Postgres at Open House NYC](https://swe.quest/articles/postgres-at-open-house-nyc-5b2de1c38cc64f40.md): ClickHouse · 2026-10-13 · Easy · 6 min read · PostgreSQL, Replication, Event-driven architecture, Analytics & OLAP
  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.

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)
