EPISODE · Aug 25, 2026 · 8 MIN
Why Database Query Planning Uses Cost Models
from Database Tech with Fexingo: SQL, NoSQL, and Data Storage Conversations · host Fexingo
In this episode of Database Tech with Fexingo, Lucas and Luna dig into the often-overlooked cost model that sits at the heart of every query optimizer. They explain how databases estimate the cost of different query plans, why those estimates can be wildly wrong, and what happens when they are. Using the example of a simple join gone slow, they walk through the key components: table cardinality, selectivity, I/O and CPU costs, and the role of statistics and system catalogs. They also discuss how modern optimizers use adaptive techniques and why understanding cost models helps developers write better queries and design schemas that the optimizer can actually exploit. Tune in to learn why your database sometimes makes puzzling choices—and how to nudge it in the right direction with hints and better statistics. #QueryOptimizer #CostModel #DatabasePerformance #SQL #NoSQL #DataStorage #PostgreSQL #MySQL #Indexing #QueryPlanning #DatabaseInternals #TechEducation #DataEngineering #DatabaseDesign #FexingoBusiness #BusinessPodcast #TechPodcast #DatabaseTech Keep every episode free: buymeacoffee.com/fexingo
Embed this episode
Ready to play
Why Database Query Planning Uses Cost Models
No transcript for this episode yet
Similar Episodes
Apr 9, 2026 ·12m
Similar Podcasts
No similar podcasts found.