PostgreSQL vs MySQL at scale: how real companies scaled each
Published 2026-10-19 · Built only from first-party engineering write-ups in our database. Every number below comes from the linked source.
Both scale to very large workloads in our database. On PostgreSQL, OpenAI runs ChatGPT on a single primary with nearly 50 read replicas, and Figma and Notion sharded Postgres themselves (a custom query proxy at Figma, workspace-keyed logical shards at Notion). On MySQL, GitHub runs 5.5 million QPS across 50+ clusters, Slack (2.3 million QPS) and Shopify's Shop app shard with Vitess, and Meta's TAO caches a graph stored in sharded MySQL.
PostgreSQL vs MySQL: side by side
| PostgreSQL | MySQL | |
|---|---|---|
| Stories in our database | 19 | 11 |
| Companies | Atlassian, Datadog, Figma, GitLab, Neon, Notion, OpenAI, PlanetScale, Supabase, Tiger Data (Timescale) and Zalando | Canva, Cloudflare, GitHub, Meta, PlanetScale, Shopify and Slack |
| Published | 2021–2026 | 2013–2026 |
| Techniques alongside it | connection pooling (3), horizontal sharding (3), query optimization (3), read replicas (3) | caching (3), database migration (3), horizontal sharding (3), connection pooling (2) |
| Scale numbers stated in sources | one primary and multiple replicas per shard (PlanetScale); 64-bit hashed keyspace split across shards (PlanetScale); restores in seconds even at 100 TB (Neon) | 99.99% production availability target (Cloudflare); hundreds of millions of users (Canva); $5.1 million sales/minute (Black Friday 2025 peak) (Shopify) |
Verdict
The difference in these stories is tooling, not raw limits. The MySQL teams often reach for Vitess to shard. The Postgres teams here leaned on PgBouncer, read replicas and sharding in their own application layer.
Two deep dives worth reading in full: OpenAI's single-primary Postgres for ChatGPT and Shopify's Redis-to-MySQL inventory reservations.
Counts are stories in How They Scaled tagged with each side, see the PostgreSQL and MySQL pages. They describe what these teams wrote about, not market share or benchmark results.