SQL Server hates you(?) - what the DBAs never told the developers
summary
Defaults kill performance: SQL Server standard edition limits the buffer cache to 128GB (64GB on 2012) so always set max server memory to leave RAM for the OS; parallelism defaults (maxdop = 0, cost threshold = 5) lead to massive CXPACKET and parallelism skew — use cost threshold ~50 and maxdop 1/2/4 and aim for ~20–30% parallel plans. Set-based queries beat row loops (example: 100k rows, 1s vs 126s). Avoid scalar or multi-statement TVFs, beware parameter sniffing, and prefer RCSI with fast tempdb storage.
AI-written summary · about
chapters (13)
- 0:00Start
- 4:09Memory
- 10:41What Is Parallelism
- 17:02Max Dop
- 31:29User Defined Functions
- 37:24Function Based Index
- 41:23Read the Manual
- 41:40Summary
- 44:51Parameter Sniffing
- 48:06Locking Strategies
- 49:26Optimistic Locking
- 52:37Dirty Reads
- 53:55Row Versioning in Tempdb
related talks
43mPerformance Tuning, Getting the Biggest Bang for Your Buck
57mYour Performance Tuning Check List
47mArchitecting for High Performance SQL Server on Virtual Machines
47mArchitecting for High Performance SQL Server on Virtual Machines
49mSQL Server on Azure VM - Configuring for Price-Performance
50mSQL Server 2022 Performance Enhancements
51mMaking the SQL Query Processor Work for you
53mBanishing Slow Queries with Intelligent Query Processing
