/plushcap/analysis/cockroach-labs/how-to-do-a-postgres-database-migration-tips-from-launchdarkly

How to do a Postgres Database Migration – Tips from LaunchDarkly

What's this blog post about?

In this interview with Justin Caballero from LaunchDarkly, we discussed their migration from PostgreSQL to CockroachDB. The motivation for the move was to improve scalability and resilience of their database infrastructure. They used feature flags to gradually roll out CockroachDB alongside their existing PostgreSQL setup, allowing them to monitor performance and correctness before fully migrating. The migration process involved converting SQL queries to ensure they performed well on CockroachDB. Justin also mentioned that handling JSON data in CockroachDB has been straightforward. LaunchDarkly currently runs CockroachDB on EC2 instances using traditional infrastructure as code management, but may consider Kubernetes in the future. The key takeaway from this migration is to keep SQL queries simple and use feature flags for gradual rollouts when migrating databases.

Company
Cockroach Labs

Date published
July 26, 2021

Author(s)
Charlie Custer

Word count
8247

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.