Optimize for Ad Hoc Workloads – SQL in Sixty Seconds #173

Optimize for Ad Hoc Workloads - SQL in Sixty Seconds #173 173-OptimizeforAdhoc-yt-800x450 Today I am going to share another real-world scenario that I often encounter while working on   Comprehensive Database Performance Health Check at my client’s place. Today we are going to discuss if we should keep Optimize for Ad Hoc Workloads true or false. Let us see a detailed video about it.

Here is the blog post which discusses Optimize for Ad Hoc Workload setting in detail. SQL SERVER – AdHoc Queries and Optimize for Adhoc Workloads. Here is the video about Optimize for Ad Hoc Workloads.

Please make sure that you do not change any SQL Server configuration without doing proper testing. There are so many different settings and one needs to make sure that changing any one settings does not reduce the performance of your server overall. If you are confused with any settings, you can always reach out to me and I Will be happy to help.

Well, that’s it for today. If you liked this video, please do not forget to subscribe to my YouTube Channel – SQL in Sixty Seconds.

Here are my few recent videos and I would like to know what is your feedback about them.

Reference: Pinal Dave (http://blog.SQLAuthority.com)

Ad Hoc Query, Execution Plan, SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Server Configuration
Previous Post
Avoid Join Hints – SQL in Sixty Seconds #172
Next Post
Index Scans – Good or Bad? – SQL in Sixty Seconds #174

Related Posts

5 Comments. Leave new

  • Pinal, again, the question (not clarified in that post or your comment here) is “what if the value is GREATER than 20-30%”? Since you’re repeated this, are you really meaning to leave it that you’re not comfortable proposing what people should do if their numbers or either higher or lower than that range? that you only want to make a recommendation for that SPECIFIC range? It seems odd, and I really feel like there’s a misunderstanding, but if you’ll confirm this is what you mean, it would at least help those left wondering.

    BTW, about the correction offered in the comments, I appreciate that readers were helping each other there. My point in asking about it here was under the hope that you may want to incorporate that change into the code you had offered (with a comment that you were updating it), so that people need not have to read the comments to avoid the error.

    As always, just trying to help.

    Reply
    • Hi Charlie,

      The recommendation is pretty simple – If your adhoc plan cache is 20-30% of total Plan Cache, you should turn on the Optimize for Ad Hoc Workloads.

      If it is not in that range, leave it as it is.

      Reply
    • Thanks Charlie, I appreciate your thoughts.

      Reply

Leave a Reply