Should You Enable Optimize For Ad Hoc Workloads?

preview_player
Показать описание
The execution plan cache is a great feature: after SQL Server goes through the effort of generating a query plan, SQL Servers saves that plan in the plan cache to be reused again at a later date.

One downside to SQL Server caching almost all plans by default is that some of those plans won't ever get reused. Those single use plans will exist in the plan cache, inefficiently tying up a piece of the server's memory.

Today I want to look at a feature that will keep these one-time use plans out of the plan cache .

Related blog post with example queries:

Follow me on Twitter:
Рекомендации по теме
Комментарии
Автор

Bert another great subject and clearly explained. Thank you!

sql