Parameter Sensitive Plan: SQL Server's Context-Aware Intelligence
Every execution plan is a decision about how to get from data to a result. For years, SQL Server could cache a plan optimized for an initial parameter value (parameter sniffing) and reuse it even when later values had very different data distributions.
馃挕 What does PSP bring to SQL Server 2022?
Parameter Sensitive Plan (PSP) optimization can maintain multiple plan variants for the same query, tuned for different parameter selectivities. A dispatcher chooses the appropriate variant for the current parameter values.