Why Database Indexing Needs Covering Indexes Not Just Indexes
from Database Tech with Fexingo: SQL, NoSQL, and Data Storage Conversations Hosted by Fexingo
Episode 117 of Database Tech with Fexingo: Lucas and Luna tackle covering indexes — a specific indexing strategy that can eliminate table lookups entirely. They explain how a typical B-tree index works in a PostgreSQL-like database, then contrast it with a covering index that includes all columns needed by a query. Using a concrete example from an e-commerce order table, they walk through the query 'SELECT order_id, total FROM orders WHERE customer_id = 123' and show how a non-covering index requires a second read of the heap (a 'bookmark lookup'), while a covering index built on (customer_id, total, order_id) resolves the query from the index alone. They discuss trade-offs: increased write cost, index size bloat, and the risk of over-indexing. The episode gives listeners a practical rule: add covering indexes for your top five slow queries, and tune them after a week of production load. No fluff, just a clear database pattern. #CoveringIndex #DatabaseIndexing #SQLPerformance #PostgreSQL #MySQL #IndexTuning #QueryOptimization #BTreeIndex #BookmarkLookup #DatabaseTech #Technology #DataEngineering #BackendDev #FexingoBusiness #BusinessPodcast #TechPodcast #IndexStrategy #DatabasePatterns Keep every episode free: buymeacoffee.com/fexingo
Embed this episode
No transcript yet.