Cache Plan Adhoc workloads

  • Anybody ever experienced any negative effects from turning on.

    sp_CONFIGURE 'show advanced options',1

    RECONFIGURE

    GO

    sp_CONFIGURE 'optimize for ad hoc workloads',1

    RECONFIGURE

    GO

    Thinking about putting this tweak into production.

  • Thanks I read through a post by Dave Pinal, nowhere have I read about a con for turning this on, only pros.

    If there is no negative why is this not common knowledge.

    I'm looking for a gotcha but there may not be one.

  • It's a pretty safe setting. Worst it can do is slightly increase the number of compiles if you happen to have ad-hoc queries that do get sent multiple times (identically)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Simple as setting back to 0 to turn off with no damage done if there are any performance issues.

  • Exactly.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Thanks, wasn't a tricky one just needed confirmation.

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply