Posts

SQL SERVER 2025 Optional parameter plan optimization (OPPO) What is and benchmarks. Internal part 1 series

Image
Before we dive into today's topic, if you missed my previous post you can take a look at SQL SERVER 2025 CU5 (Cumulative Update 5) Is OUT! A Hot Take on the New Features for DBAs 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. SQL SERVER 2025 Optional Parameter Plan Optimization (OPPO) What It Is and Benchmarks — Internal Part 1 Series ⚡ SQL Server 2025 finally attacks one of the oldest performance killers: optional parameter queries and unstable execution plans. 🧠 In this post you will learn how OPPO works internally, why it matters for parameter-sensitive workloads, and how to benchmark it yourself with real T-SQL tests. 🧠 TL;DR BOX ✔️ SQL Server 2025 OPPO automatically creates multiple execution plan variants for optional parameter queries ⚡ ✔️ OPPO is part of Intelligent Query Processing and reduces parameter-sensitive plan issues 💣 ✔...

SQL SERVER 2025 CU5 (Cumulative Update 5) Is OUT! A Hot Take on the New Features for DBAs

Before we dive into today's topic, if you missed my previous post you can take a look at Check SQL Server Plan Cache Pollution (III) in 45 Seconds, The "45 Seconds DBA Series" | Part 24 . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. SQL SERVER 2025 CU5 (Cumulative Update 5) Is OUT! A Hot Take on the New Features for DBAs ⚡ Critical fixes. Security patches. In-Memory OLTP improvements. Full-Text Search upgrades. This CU is not just maintenance — it directly impacts performance stability and production reliability. In this post, I’ll show you what really matters inside SQL Server 2025 CU5, why some fixes are potentially production-saving, and what every DBA should immediately validate after patching. ⚡ We will also see practical T-SQL examples you ...

Check SQL Server Plan Cache Pollution (III) in 45 Seconds, The "45 Seconds DBA Series" | Part 24

Image
Before we dive into today's topic, if you missed my previous post you can take a look at "Check SQL Server Plan Cache Pollution (II) in 45 Seconds" . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. Check SQL Server Plan Cache Pollution (III) in 45 Seconds Inside SQL Server Compilation & Recompilation | Part 24 Ever wondered why your CPU hits 100% despite low query volume? In this post, I'll tear apart the mechanics of Compilation Storms and show you how to detect "SOS_CACHESTORE" bottlenecks in under a minute. 🧠 TL;DR BOX ✔️ Compilation Cost: CPU cycles are wasted when SQL Server performs "Full Optimization" repeatedly. 💣 ✔️ Trivial Plans: The fast-track to execution that skips cost-base...

Check SQL Server Plan Cache Pollution (II) in 45 Seconds, The "45 Seconds DBA Series" | Part 23

Image
Before we dive into today's topic, if you missed my previous post you can take a look at Check SQL Server Plan Cache Pollution (I) . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. Check SQL Server Plan Cache Pollution (II) in 45 Seconds The "45 Seconds DBA Series" | Part 23 You fixed ad-hoc queries, but your server is still screaming? In this post, I’ll expose why even perfect parameterization can lead to "reuse toxicity" and massive CPU spikes. 🧠 TL;DR BOX ✔️ Parameterized Pollution: Cache pollution isn't just "too many plans"; it's also "the wrong plan reused everywhere." 💣 ✔️ Reuse Toxicity: A plan optimized for a single row is forced onto a million-row result set, killing p...

Check SQL Server Plan Cache Pollution (I) in 45 Seconds, The "45 Seconds DBA Series" | Part 22

Image
Before we dive into today's topic, if you missed my previous post you can take a look at SQL SERVER “If SQL Server Errors Were Honest” - Sunday SQL Humor 😅 . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. Check SQL Server Plan Cache Pollution (I) in 45 Seconds The "45 Seconds DBA Series" | Part 22 In this post, I’ll show you how "single-use" execution plans are silently hijacking your server's RAM and how to stop this memory waste in under a minute. 🧠 TL;DR BOX ✔️ Plan Cache Pollution occurs when non-parameterized queries create thousands of useless, single-use execution plans. 💣 ✔️ Memory Starvation: These plans steal space from the Buffer Pool, forcing data out of memory and increasing I/O. 📉 ...