Mastering TempDB
summary
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
chapters (12)
- 0:00Introduction to tempdb
- 2:53What is tempdb
- 5:16What tempdb holds
- 10:13Proper configuration
- 14:32Tempdb in the cloud
- 17:24Fixing contention
- 22:18Table variables and tables
- 28:23SQL Server 2019 improvements
- 32:34Monitoring space usage
- 34:27Resizing and shrinking
- 40:33Spills and statistics
- 42:36Advanced feedback and closing
related talks
31mBecome an Expert in Managing Your Tempdb
49mHidden Gems in SQL Server 2022 Database Engine
51mNext Level Scalability on SQL Server 2022
43mPerformance Tuning, Getting the Biggest Bang for Your Buck
48mSQL Server 2022 hidden gems
50mSQL Server 2022 Performance Enhancements
57mYour Performance Tuning Check List
49mPerformance Improvements in SQL Server 2019
