Elevating SQL Server Performance with Query Store Hints
summary
Demonstrates how SQL Server 2022 Query Store Hints let DBAs change plan behavior without touching application code by registering hints against captured query IDs and persisting them across restarts. Uses the built‑in sp_query_store_hints procedure to apply MAXDOP=1 and OPTION(RECOMPILE) to two example queries (product IDs 897 vs 870, one filter returning ~4,000 rows) and shows the bad cached plan is replaced at next execution, eliminating unwanted parallelism and parameter‑sniffing regressions.
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
51mMaking the SQL Query Processor Work for you
19mStabilizing Performance with Query Store
19mStabilizing Performance with Query Store
22mA Beginners guide to Query Store
50mBuilt-in Intelligence with Azure SQL and SQL Server 2022
53mBanishing Slow Queries with Intelligent Query Processing
48mQuery Store: A Retrospective
