~/talk

Here’s the execution plan … now what?

Talkat SQLBits 2019 · 2019-02-27..03-02· [databases]
links:none on file
slides:none on file

Hands-on diagnostics for real plans: shows a dashboard proc causing resource semaphore waits where a 47 MB memory grant 47MB → 14MB drops by splitting the page‑1 path and forcing a top-end sort instead of a full SORT, identifies heavy memory-users (SORT, HASH MATCH) via execution-plan estimates and the Execution Plan Reference, uses Query Store to find plans with 6 ms → 300 ms variance from bad parameter sniffing, and demonstrates fixes: OPTION(RECOMPILE), OPTIMIZE FOR, safe dynamic SQL and small specialized procs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:34Theory versus execution plans
  3. 4:47Resource semaphor waits in SQL Server
  4. 8:47Paginated sales report analysis
  5. 12:20Memory-heavy operators in plans
  6. 16:21Optimizing memory grants for dashboards
  7. 27:29Bug in optimized query
  8. 29:15Erratic query performance patterns
  9. 32:06Query Store for performance issues
  10. 38:29Bad parameter sniffing causes
  11. 43:06Fixing bad parameter sniffing
  12. 47:42Dynamic SQL to avoid sniffing
  13. 50:13Balancing optimization and business
~/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.