September 15, 2025 at 12:00 am
Comments posted to this topic are about the item Parameter Sensitive Plan Optimization in SQL Server 2022
September 16, 2025 at 12:10 am
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
September 19, 2025 at 4:39 am
Thank you, this is helpful information. If the data values of a column are more evenly distributed then the idea is that the three plans will be similar if not the same. How would this introduce the possibility for parameter sniffing based degradation ? I can see the gray area being where few records with a new value have been added, not enough to warrant a update of the table statistics. But on a small table this would probably result in a scan , not a huge concern due to its small size. On a larger table the new rows would be seeked likely (again assuming an even distribution). So the additional new values would probably not offer a noticeable performance change.
----------------------------------------------------
September 19, 2025 at 6:42 am
In case of even data distribution, with three execution plans, there are chances that it takes additional space in plan cache. Also, there are chances that it might confuse the query optimizer to which plan to use leading to more parameter sniffing. I haven't tried with even data distribution, but yeah it is worth a try now.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply