Dear SQL DBA

Erik Darling and Kendra Little Rate SQL Server Perf Tuning Techniques

May 20, 2024
Join SQL Server experts Erik Darling and Kendra Little as they explore a treasure trove of performance tuning techniques. They rate everything from recompile hints to scalar UDFs, adding humor to the complexities of optimization. Discover their takes on new features like the Query Store and the Resource Governor. They debate the merits of Common Table Expressions and index rebuilding while reflecting on memory management. With insights on filtered indexes and the future of T-SQL, this conversation is a must-listen for anyone passionate about SQL Server performance.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Filtered Indexes Optimize Skewed Data

  • Filtered indexes help optimize queries on skewed or partial data sets via granular statistics.
  • Always include filtered columns in the index to maximize use and avoid poor query plans.
ADVICE

Use Join Hints Sparingly

  • Use join hints as last resort when optimizer fails, primarily with loop or hash joins.
  • Avoid merge joins, which they find problematic and would prefer an explicit 'no merge join' hint.
INSIGHT

PSPO Limits With Inequality Predicates

  • Parameter Sensitive Plan Optimization works only for equality predicates with limited applicability.
  • Many issues arise with inequalities like date ranges, limiting its usefulness.
Get the Snipd Podcast app to discover more snips from this episode
Get the app