~/talk

The Most Important Performance Factor in SQL Server and Azure SQL

Talkat SQLBits 2019 · 2019-02-27..03-02· [databases, web-performance]
linkedin:glantser
slides:none on file

Claim: table column statistics drive nearly every optimizer decision and bad stats cause wrong plans. Live demos on a 41 million‑row library show SQL Server guessing sqrt(N) when stats are missing (estimates ~6,450 vs actual 7,734), returning the same wrong estimate for a 5M romance query until auto create statistics runs, and cutting logical reads from ~800,000 (forced lookups) to ~31,000 after accurate stats. Uses SET STATISTICS IO, DBCC SHOW_STATISTICS and DMVs, notes histogram limit 200, sample ~0.7%, auto‑update threshold ≈200k rows, and CE changes in 2014 and 2022.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 2:07Importance of statistics
  3. 5:41Troubleshooting execution plans
  4. 10:47Auto-create statistics
  5. 13:39Metadata and histograms
  6. 18:31Index-based statistics
  7. 23:45Performance testing tips
  8. 27:18Local variable issues
  9. 33:45Column correlation and CE
  10. 37:38Advanced statistics types
  11. 41:21Filtered statistics
  12. 44:50Managing statistics updates
  13. 50:02Summary and best practices
~/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.