Is there a measure of time frame as to which the execution plan of inline queries will cached?
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
migrated from stackoverflow.com Jan 26 '12 at 14:34
|
There is an algorithm (will find it), but practically it will stay there:
|
|||
|
As gbn said, there is an algorithm. Just to add that the length of time a plan will be cached for also relates to how valuable a plan is deemed to be and how often it is used (if it's a higher value plan, and it keeps getting used then it's value is very high so will be more likely to be held for longer than other plans) |
|||
|
|