30 Sep 2026 · 7 min read
Parameter Sniffing vs. Parameter Sensitive Plan Optimisation: SQL Server's Reality
Parameter sniffing is when SQL Server compiles a plan for the first parameter value it sees and reuses it for values that need a different plan. Parameter sensitive plan optimisation (PSPO) in SQL Server 2022 caches up to three plan variants for skewed predicates, which fixes many sniffing problems automatically, but query hints, OPTION (RECOMPILE) or code changes are still needed where the skew falls outside its thresholds.
Read article →