Indexing SQL Server Queries For Performance: Eager Index Spools
In this video, I delve into a specific performance issue that often plagues SQL Server queries: eager index spools. These spools can significantly impact query performance, especially in nested loops joins, and they frequently arise even when you have indexes available but the optimizer chooses not to use them. I explore why these spools occur, highlighting their inefficiencies and how they can be avoided by optimizing your queries or ensuring that the optimizer uses existing indexes effectively. By understanding eager index spools better, you can improve query performance and reduce unnecessary overhead in your SQL Server environment. CHAPTERS 00:00:00 - Introduction 00:01:29 - Eager Index Spool Explanation 00:03:18 - Support Me with Regular Beers 00:05:09 - Talking About Eager Index Pools 00:07:40 - Optimizer and IO Patterns 00:10:42 - DOP1 and Eager Index Pool Build Time 00:13:01 - Optimizer Deficiencies 00:14:25 - Current Index on Post Table 00:16:34 - Fixing the Problem with an Index 00:19:01 - Hash Join Plan Comparison 00:21:16 - Using Additional Indexes 00:22:13 - Conclusion ━━━━━━━━━━━━━━━━━━━━━━━━━━ 📚 TRAINING & COURSES ━━━━━━━━━━━━━━━━━━━━━━━━━━ Get AI-Ready With Erik https://training.erikdarling.com/get-ai-ready-with-erik?coupon=AIREADY SQL Server Performance Engineering Course https://training.erikdarling.com/sql-server-performance-engineering?coupon=ENGINEERING Learn T-SQL with Erik https://training.erikdarling.com/learn-t-sql-with-erik?coupon=ADVANCEDTSQL Everything Bundle: https://training.erikdarling.com/?coupon=SPRINGCLEANING ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🛠️ CONSULTING & SERVICES ━━━━━━━━━━━━━━━━━━━━━━━━━━ Need SQL Server performance help? https://training.erikdarling.com/sqlconsulting ━━━━━━━━━━━━━━━━━━━━━━━━━━ 💬 CONNECT ━━━━━━━━━━━━━━━━━━━━━━━━━━ Ask questions at Office Hours https://erikdarling.com/officehours/ Become a channel member https://www.youtube.com/@ErikDarlingData/join ━━━━━━━━━━━━━━━━━━━━━━━━━━
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.