For a DW, is it worth always recompiling all SP's after weekly index maintenance?

  • So not talking about SP's that run in a millisecond but procedures that run for up to an hour each.

    This will make the recompile time irrelevant.

    Has anyone tried this or does anyone know of any drawbacks with this?

  • No. Index maintenance will invalidate all plans anyway, they'll recompile on their next execution.

    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 for the super quick response Gail 🙂

Viewing 3 posts - 1 through 2 (of 2 total)

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