Plan cache reuse

This metric shows the percentage of cached plans that are being used more than once. If a plan is cached but never reused, there may be an opportunity to tune your server to work more effectively.

Install metric...

Metrics install automatically if you have Redgate Monitor installed.

If you are using Redgate’s SQL Server monitoring tool, Redgate Monitor, you can instantly install and run this metric on your servers.

This metric shows the percentage of cached plans that are being used more than once. If a plan is cached but never reused, there may be an opportunity to tune your server to work more effectively by rewriting the TSQL or creating a parameterized plan.

Metric definition

Name

Plan cache reuse

Description

Reuse of plans that are stored in the plan cache is important to the efficiency of SQL Server. Having the cache full of plans that are not reused is wasteful, and it means that there may be lots of queries not using the cache efficiently. If this metric is low then investigate the number of plans in your cache that have a usecount of 1 and see if any can be parameterized.

The T-SQL query that will collect data

Instances to collect from

Select all

Databases to collect from

TempDB

Collection frequency

600

Note: If you suspect that there may be an issue with plan cache reuse, increase the collection frequency to every minute so you can analyze more data.

Use collected or calculated values

Leave the Use a calculated rate of change between collections check box unchecked

Metric collection

Enabled

Alert definition

An alert is not required