0

I'm working a star schema data warehouse created in Azure SQL database where the last developer included WITH RECOMPILE on all the Procs.

This I believe was because the ETL only executes these Procs twice a day so the overhead of recompiles is minimal.

However, isn't there a risk of the cache becoming bloated with all those plans and if so, what's the best way to maintain the plan cache to keep it trim and as efficient as possible?

1 Answer 1

3

The plans generated for queries with forced recompile are not cached. See RECOMPILE Hints and Execution Plan Caching for details.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.