FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
How we stopped ORM migrations from taking down our Postgres database
NewsDevOps

How we stopped ORM migrations from taking down our Postgres database

via Dev.to DevOpsMunteanu Flavius-Ioan1mo ago

If you've ever run a database migration that applied a seemingly minor change, like ALTER TABLE users ADD COLUMN is_verified BOOLEAN DEFAULT false , only to watch your API response times spike and connection pools exhaust, you've met the Postgres ACCESS EXCLUSIVE lock. Modern ORMs like TypeORM, Sequelize, Prisma, and Drizzle hide the underlying Postgres locking mechanics. When developers can't see the DDL statements their ORMs are running, they can't optimize them. The Lock Queue Death Spiral Postgres requires strict locks for schema changes. When a migration runs an ALTER TABLE command, it normally requires an ACCESS EXCLUSIVE lock. If there's currently a 30-second reporting query running on that table, the migration has to wait in line. While the migration is waiting, every other incoming production query behind it is also forced to wait. Suddenly, your app is down. Introducing pgfence To solve this, I built pgfence , a source-available TypeScript CLI designed specifically for the No

Continue reading on Dev.to DevOps

Opens in a new tab

Read Full Article
21 views

Related Articles

The LG C5 OLED TV is selling for almost 50% off right now - and I highly recommend it
News

The LG C5 OLED TV is selling for almost 50% off right now - and I highly recommend it

ZDNet • 5d ago

Google Translate’s real-time headphone translations feature expands to iOS and more countries
News

Google Translate’s real-time headphone translations feature expands to iOS and more countries

TechCrunch • 5d ago

5 gadgets I'm buying this spring to grow my green thumb (and they're on sale)
News

5 gadgets I'm buying this spring to grow my green thumb (and they're on sale)

ZDNet • 5d ago

WhatsApp's March update finally fixes the big iPhone-to-Android concern (and more)
News

WhatsApp's March update finally fixes the big iPhone-to-Android concern (and more)

ZDNet • 5d ago

Fitbit’s budget-friendly Inspire 3 is $30 off, matching its best price
News

Fitbit’s budget-friendly Inspire 3 is $30 off, matching its best price

The Verge • 5d ago

Discover More Articles