21/08/2026
How would you optimize a slow SQL query? — the question where the difference between a junior and senior answer isn't the terms you know, it's how precisely you use them.
Swipe through the full breakdown: what to actually check in an ex*****on plan (actual rows vs. estimated, warning icons, cost as a starting estimate — not a literal runtime breakdown), SARGability beyond the classic YEAR() example — including the implicit varchar/nvarchar conversion trap most people never think to check, why a seek with a Key Lookup still isn't automatically fast, why row-count mismatches point to cardinality estimation problems more broadly (not just stale statistics), and the parameter sniffing pattern that makes a query fast for one user and inexplicably slow for the next — including when to actually reach for OPTION(RECOMPILE) or OPTIMIZE FOR UNKNOWN, and when not to.
Want more like this? Subscribe for future deep dives. 🔔