~/talk

Elevating SQL Server Performance with Query Store Hints

Talkat SQLBits 2024 · 2024-03-19..03-23· [databases]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:12What is Query Store
  3. 3:00SQL Server hints basics
  4. 6:11Query Store hints
  5. 9:04Demo: Setup Query Store hints
  6. 14:04Demo: Avoid parameter sniffing
  7. 18:46Benefits of Query Store hints
  8. 19:50Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.