Tempdb Latch Contention on SQL Server 2019 and 2025
Reproducing tempdb PAGELATCH contention with 48 sessions on SQL Server 2019 and 2025: which pages the waits hit, and how to name them.
Finding and Fixing a Plan Regression with Query Store
A plan regression reproduced on SQL Server 2019 and 2025: finding it in Query Store, forcing the good plan, automatic plan correction and PSP.
Backup & Recovery from First Principles, Part 9: BUFFERCOUNT, MAXTRANSFERSIZE, and Friends - Benchmarked
The BACKUP statement has a set of tuning knobs most people never touch: BUFFERCOUNT, MAXTRANSFERSIZE, BLOCKSIZE, and striping across multiple files.[1] Advice about them tends to be folklore, so this post is numbers instead: nine…
Scalar UDFs vs Inline TVFs: Measuring the Damage
Scalar user-defined functions are the most natural thing in the world to write. You have a bit of logic, you wrap it in a function, you call it in your SELECT list, and your query…
Finding Eager Index Spools in the Plan Cache
Somewhere in your plan cache right now, there is probably a query quietly building an index every single time it runs. Not once. Every execution. It builds the index, uses it, and throws it away,…