Elevating SQL Server Performance with Query Store Hints
summary
SQL Server 2022 lets Query Store attach hints to a captured query so execution changes without touching application code; demo shows using built-in procedures to list query IDs, apply and clear hints, and verify plans. Two concrete fixes: apply MAXDOP=1 to remove parallelism across all occurrences of a query, and apply RECOMPILE to avoid parameter sniffing that caused a bad plan for one product ID; changes take effect on next execution and persist across restarts.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:12What is Query Store
- 3:00SQL Server hints basics
- 6:11Query Store hints
- 9:04Demo: Setup Query Store hints
- 14:04Demo: Avoid parameter sniffing
- 18:46Benefits of Query Store hints
- 19:50Q&A
related talks
20mElevating SQL Server Performance with Query Store Hints
22mA Beginners guide to Query Store
19mStabilizing Performance with Query Store
50mBuilt-in Intelligence with Azure SQL and SQL Server 2022
19mStabilizing Performance with Query Store
53mBanishing Slow Queries with Intelligent Query Processing
48mQuery Store: A Retrospective
22mEmpowering SQL: Mastering Intelligent Query Processing in 20 Minutes
