Skip to content

Commit 9d7f7ea

Browse files
authored
Omit Resource DB from duplicate query plan checks
Addresses BrentOzarULTD#3314
1 parent 6a05365 commit 9d7f7ea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎sp_BlitzCache.sql‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,6 +1620,7 @@ WITH total_plans AS
16201620
ON qs.sql_handle = ps.sql_handle
16211621
CROSS APPLY sys.dm_exec_plan_attributes(qs.plan_handle) pa
16221622
WHERE pa.attribute = N'dbid'
1623+
AND pa.value <> 32767 /*Omit Resource database-based queries, we're not going to "fix" them no matter what. Addresses #3314*/
16231624
AND qs.query_plan_hash <> 0x0000000000000000
16241625
GROUP BY
16251626
/* qs.query_plan_hash, BGO 20210524 commenting this out to fix #2909 */

0 commit comments

Comments
 (0)