为什么SQL Server 2016 SP2会在一天中间自动重新编译我的所有计划? [英] Why SQL Server 2016 SP2 recompiled all of my plan automatically in the middle of the day?

查看:69
本文介绍了为什么SQL Server 2016 SP2会在一天中间自动重新编译我的所有计划?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么SQL Server 2016 SP2会在当天中间自动重新编译我的所有计划?



我确实看到错误日志中的内存压力并且其中一个查询选择了索引扫描而不是索引搜索,因此CPU飙升至100%并影响了应用程序。



我能做些什么来阻止即使在PLE下降的情况下,计划从Index Seek变为Index Scan?



FYI,我们将在服务器上启用LPIM。





Re gards,Ashif Shaikh




解决方案

为什么我的SP在中午重新编译并选择了一个糟糕的SQL计划?


我没有看到基础表中的任何大量数据更改并且没有进行任何修改


Why SQL Server 2016 SP2 recompiled all of my plan automatically in the middle of the day?

I do see memory pressure in the error log and one of the query chose index scan instead of index seek due to this the CPU spiked to 100% and affected the application.

What I can do to prevent the plan change from Index Seek to Index Scan even in a case of PLE drop?

FYI, we are going to enable LPIM on the servers.


Regards, Ashif Shaikh


解决方案

Why my SP got recompiled in the middle of the day and chose a terrible SQL plan?

I do not see any huge data changes in the underlying table and no modification was done


这篇关于为什么SQL Server 2016 SP2会在一天中间自动重新编译我的所有计划?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆