~/talk

Mastering TempDB

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

Explains which SQL Server features actually land in TempDB (AlwaysOn AGs, RCSI version store, spills, sorts, temp tables) and gives concrete remedies: add matching-size data files one data file per CPU core up to eight, resize together or plan a restart, use checkpoints + DBCC SHRINKFILE then DBCC DROPCLEANBUFFERS/FREEPROCCACHE if needed, and avoid unnecessary DROP TABLE. Notes optimizer fixes: table variable deferred compilation in 2019 removes many spills, and moving to 2022 flatlines engine tempdb usage, so upgrades and specific trace flags (1117/118, per-statement 2453) matter.

AI-written summary · about

  1. 0:00Introduction to tempdb
  2. 2:53What is tempdb
  3. 5:16What tempdb holds
  4. 10:13Proper configuration
  5. 14:32Tempdb in the cloud
  6. 17:24Fixing contention
  7. 22:18Table variables and tables
  8. 28:23SQL Server 2019 improvements
  9. 32:34Monitoring space usage
  10. 34:27Resizing and shrinking
  11. 40:33Spills and statistics
  12. 42:36Advanced feedback and closing
~/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.