~/talk

Elevating SQL Server Performance with Query Store Hints

Talkat SQLBits 2022 · 2022-03-08..03-12· [databases]
links:none on file
slides:none on file

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

  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.