By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
MadisonyMadisony
Notification Show More
Font ResizerAa
  • Home
  • National & World
  • Politics
  • Investigative Reports
  • Education
  • Health
  • Entertainment
  • Technology
  • Sports
  • Money
  • Pets & Animals
Reading: How OpenAI is scaling the PostgreSQL database to 800 million customers
Share
Font ResizerAa
MadisonyMadisony
Search
  • Home
  • National & World
  • Politics
  • Investigative Reports
  • Education
  • Health
  • Entertainment
  • Technology
  • Sports
  • Money
  • Pets & Animals
Have an existing account? Sign In
Follow US
2025 © Madisony.com. All Rights Reserved.
Technology

How OpenAI is scaling the PostgreSQL database to 800 million customers

Madisony
Last updated: January 24, 2026 2:49 am
Madisony
Share
How OpenAI is scaling the PostgreSQL database to 800 million customers
SHARE



Contents
Why PostgreSQL issues for enterprisesHow OpenAI is optimizing PostgreSQLWhy this issues

Whereas vector databases nonetheless have many legitimate use circumstances, organizations together with OpenAI are leaning on PostgreSQL to get issues executed.

In a weblog submit on Thursday, OpenAI disclosed how it’s utilizing the open-source PostgreSQL database.

OpenAI runs ChatGPT and its API platform for 800 million customers on a single-primary PostgreSQL occasion — not a distributed database, not a sharded cluster. One Azure PostgreSQL Versatile Server handles all writes. Practically 50 learn replicas unfold throughout a number of areas deal with reads. The system processes tens of millions of queries per second whereas sustaining low double-digit millisecond p99 latency and five-nines availability.

The setup challenges typical scaling knowledge and gives enterprise architects perception into what truly works at large scale.

The lesson right here isn’t to repeat OpenAI’s stack. It’s that architectural selections ought to be pushed by workload patterns and operational constraints — not by scale panic or trendy infrastructure decisions. OpenAI’s PostgreSQL setup reveals how far confirmed methods can stretch when groups optimize intentionally as a substitute of re-architecting prematurely.

"For years, PostgreSQL has been one of the important, under-the-hood information methods powering core merchandise like ChatGPT and OpenAI’s API,"  OpenAI engineer Bohan Zhang wrote in a technical disclosure. "Over the previous 12 months, our PostgreSQL load has grown by greater than 10x, and it continues to rise shortly."

The corporate achieved this scale via focused optimizations, together with connection pooling that reduce connection time from 50 milliseconds to five milliseconds and cache locking to stop 'thundering herd' issues the place cache misses set off database overload.

Why PostgreSQL issues for enterprises

PostgreSQL handles operational information for ChatGPT and OpenAI's API platform. The workload is closely read-oriented, which makes PostgreSQL a great match. Nonetheless, PostgreSQL's multiversion concurrency management (MVCC) creates challenges underneath heavy write hundreds.

When updating information, PostgreSQL copies whole rows to create new variations, inflicting write amplification and forcing queries to scan via a number of variations to search out present information.



Relatively than preventing this limitation, OpenAI constructed its technique round it. At OpenAI’s scale, these tradeoffs aren’t theoretical — they decide which workloads keep on PostgreSQL and which of them should transfer elsewhere.

How OpenAI is optimizing PostgreSQL

At massive scale, typical database knowledge factors to one in every of two paths: shard PostgreSQL throughout a number of main cases so writes could be distributed, or migrate to a distributed SQL database like CockroachDB or YugabyteDB designed to deal with large scale from the beginning. Most organizations would have taken one in every of these paths years in the past, effectively earlier than reaching 800 million customers.

Sharding or shifting to a distributed SQL database eliminates the single-writer bottleneck. A distributed SQL database handles this coordination robotically, however each approaches introduce vital complexity: software code should route queries to the proper shard, distributed transactions turn into tougher to handle and operational overhead will increase considerably.

As an alternative of sharding PostgreSQL, OpenAI established a hybrid technique: no new tables in PostgreSQL. New workloads default to sharded methods like Azure Cosmos DB. Current write-heavy workloads that may be horizontally partitioned get migrated out. The whole lot else stays in PostgreSQL with aggressive optimization.

This method gives enterprises a sensible various to wholesale re-architecture. Relatively than spending years rewriting a whole lot of endpoints, groups can determine particular bottlenecks and transfer solely these workloads to purpose-built methods.



Why this issues

OpenAI's expertise scaling PostgreSQL reveals a number of practices that enterprises can undertake no matter their scale.

Construct operational defenses at a number of layers. OpenAI's method combines cache locking to stop "thundering herd" issues, connection pooling (which dropped their connection time from 50ms to 5ms), and charge limiting at software, proxy and question ranges. Workload isolation routes low-priority and high-priority site visitors to separate cases, guaranteeing a poorly optimized new function can't degrade core companies.

Overview and monitor ORM-generated SQL in manufacturing. Object-Relational Mapping (ORM) frameworks like Django, SQLAlchemy, and Hibernate robotically generate database queries from software code, which is handy for builders. Nonetheless, OpenAI discovered one ORM-generated question becoming a member of 12 tables that brought about a number of high-severity incidents when site visitors spiked. The comfort of letting frameworks generate SQL creates hidden scaling dangers that solely floor underneath manufacturing load. Make reviewing these queries a typical apply.

Implement strict operational self-discipline. OpenAI permits solely light-weight schema modifications — something triggering a full desk rewrite is prohibited. Schema modifications have a 5-second timeout. Lengthy-running queries get robotically terminated to stop blocking database upkeep operations. When backfilling information, they implement charge limits so aggressive that operations can take over per week.

Learn-heavy workloads with burst writes can run on single-primary PostgreSQL longer than generally assumed. The choice to shard ought to rely on workload patterns relatively than consumer counts.

This method is especially related for AI functions, which regularly have closely read-oriented workloads with unpredictable site visitors spikes. These traits align with the sample the place single-primary PostgreSQL scales successfully.

The lesson is easy: determine precise bottlenecks, optimize confirmed infrastructure the place attainable, and migrate selectively when needed. Wholesale re-architecture isn't all the time the reply to scaling challenges.

Subscribe to Our Newsletter
Subscribe to our newsletter to get our newest articles instantly!
[mc4wp_form]
Share This Article
Email Copy Link Print
Previous Article Why a Nation in a “Studying Disaster” Ought to Rethink How It Celebrates the Worldwide Day of Training Why a Nation in a “Studying Disaster” Ought to Rethink How It Celebrates the Worldwide Day of Training
Next Article Minnesota AG Keith Ellison accuses White Home of “politics and retribution” Minnesota AG Keith Ellison accuses White Home of “politics and retribution”

POPULAR

World leaders to debate the way forward for Europe’s safety in Munich : NPR
National & World

World leaders to debate the way forward for Europe’s safety in Munich : NPR

The Epstein ties that ended Kathy Ruemmler’s run at Goldman
Politics

The Epstein ties that ended Kathy Ruemmler’s run at Goldman

OpenAI Is Nuking Its 4o Mannequin. China’s ChatGPT Followers Aren’t OK
Technology

OpenAI Is Nuking Its 4o Mannequin. China’s ChatGPT Followers Aren’t OK

78 Should-Share Poems for Center Faculty and Excessive Faculty
Education

78 Should-Share Poems for Center Faculty and Excessive Faculty

Ontario Secures Diageo Deal to Keep Crown Royal on LCBO Shelves
top

Ontario Secures Diageo Deal to Keep Crown Royal on LCBO Shelves

Can Superior Micro Units (AMD) Acquire Floor within the AI Chip Race?
Money

Can Superior Micro Units (AMD) Acquire Floor within the AI Chip Race?

Kitten Trapped Inside Mercedes Engine Rescued By Fast Considering Mechanic
Pets & Animals

Kitten Trapped Inside Mercedes Engine Rescued By Fast Considering Mechanic

You Might Also Like

Mistral launches OCR 3 to digitize enterprise paperwork, touts 74% win charge and -per-1,000-page pricing
Technology

Mistral launches OCR 3 to digitize enterprise paperwork, touts 74% win charge and $2-per-1,000-page pricing

Mistral AI, the French synthetic intelligence firm valued at €11.7 billion, unveiled its third-generation optical character recognition mannequin on Tuesday,…

16 Min Read
Tourists’ Common Mistakes That Expose Them as Outsiders Worldwide
businessEducationEntertainmentHealthPoliticsSportsTechnologytoptourismworld

Tourists’ Common Mistakes That Expose Them as Outsiders Worldwide

Everyday Habits That Betray Foreign VisitorsTravelers often aim to blend in, but certain behaviors instantly mark them as outsiders. Drawing…

2 Min Read
Your iPhone Already Has iPhone Fold Software program, however Apple Received’t Let You Use It
Technology

Your iPhone Already Has iPhone Fold Software program, however Apple Received’t Let You Use It

The hack depends on an exploit that tips the iPhone’s working system into considering it’s working on an iPad. That…

4 Min Read
Newly Released Emails Reveal Jeffrey Epstein’s Secret Son
businesscrimeEducationEntertainmentHealthPoliticsSportsTechnologytopworld

Newly Released Emails Reveal Jeffrey Epstein’s Secret Son

Undisclosed Child Emerges in Latest Epstein Document Release Previously unknown communications indicate Jeffrey Epstein fathered a child in 2011, approximately…

3 Min Read
Madisony

We cover the stories that shape the world, from breaking global headlines to the insights behind them. Our mission is simple: deliver news you can rely on, fast and fact-checked.

Recent News

World leaders to debate the way forward for Europe’s safety in Munich : NPR
World leaders to debate the way forward for Europe’s safety in Munich : NPR
February 13, 2026
The Epstein ties that ended Kathy Ruemmler’s run at Goldman
The Epstein ties that ended Kathy Ruemmler’s run at Goldman
February 13, 2026
OpenAI Is Nuking Its 4o Mannequin. China’s ChatGPT Followers Aren’t OK
OpenAI Is Nuking Its 4o Mannequin. China’s ChatGPT Followers Aren’t OK
February 13, 2026

Trending News

World leaders to debate the way forward for Europe’s safety in Munich : NPR
The Epstein ties that ended Kathy Ruemmler’s run at Goldman
OpenAI Is Nuking Its 4o Mannequin. China’s ChatGPT Followers Aren’t OK
78 Should-Share Poems for Center Faculty and Excessive Faculty
Ontario Secures Diageo Deal to Keep Crown Royal on LCBO Shelves
  • About Us
  • Privacy Policy
  • Terms Of Service
Reading: How OpenAI is scaling the PostgreSQL database to 800 million customers
Share

2025 © Madisony.com. All Rights Reserved.

Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?