Skip to content
Why Database Query Plans Kill Your Performance Without Histograms episode artwork

EPISODE · Jul 6, 2026 · 9 MIN

Why Database Query Plans Kill Your Performance Without Histograms

from Database Tech with Fexingo: SQL, NoSQL, and Data Storage Conversations · host Fexingo

Lucas and Luna dive into a quiet but devastating database problem: query plans that fail because the database has no accurate histogram—or has one so stale it's worse than none at all. They walk through a real scenario: a PostgreSQL 16 query that ran in 12 milliseconds for six months, then suddenly blew up to 47 seconds. The culprit? An ANALYZE job that ran during a bulk DELETE, creating a histogram that made the optimizer think a table was empty. They contrast how MySQL's innodb_stats_auto_recalc and SQL Server's auto-update statistics handle the same edge case. Lucas shares a fix used at a mid-size ad-tech firm: forcing manual histogram builds during quiet windows and pinning critical stats. Luna flags the growing problem in serverless databases where you can't control ANALYZE timing. The episode ends with a rule of thumb: any query you'd block production deploys over needs its histogram observed for at least one full business cycle. #Database #QueryOptimizer #Histograms #PostgreSQL #MySQL #SQLServer #Statistics #ANALYZE #Serverless #Performance #QueryPlan #CostBasedOptimizer #DatabaseInternals #Technology #TechPodcast #DataEngineering #FexingoBusiness #BusinessPodcast Keep every episode free: buymeacoffee.com/fexingo

Episode metadata supplied by the publisher feed · Published Jul 6, 2026

Embed this episode

Ready to play

Why Database Query Plans Kill Your Performance Without Histograms

0:00 9:38

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Database Tech with Fexingo: SQL, NoSQL, and Data Storage Conversations?

This episode is 9 minutes long.

When was this Database Tech with Fexingo: SQL, NoSQL, and Data Storage Conversations episode published?

This episode was published on July 6, 2026.

Can I download this Database Tech with Fexingo: SQL, NoSQL, and Data Storage Conversations episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!