Skip to content

Commit

Permalink
Merge pull request #3315 from WaldenL/dev
Browse files Browse the repository at this point in the history
Omit Resource DB from duplicate query plan checks
  • Loading branch information
BrentOzar authored Aug 15, 2023
2 parents ebec4ee + bed6825 commit 18a7d12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sp_BlitzCache.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,7 @@ WITH total_plans AS
ON qs.sql_handle = ps.sql_handle
CROSS APPLY sys.dm_exec_plan_attributes(qs.plan_handle) pa
WHERE pa.attribute = N'dbid'
AND pa.value <> 32767 /*Omit Resource database-based queries, we're not going to "fix" them no matter what. Addresses #3314*/
AND qs.query_plan_hash <> 0x0000000000000000
GROUP BY
/* qs.query_plan_hash, BGO 20210524 commenting this out to fix #2909 */
Expand Down

0 comments on commit 18a7d12

Please sign in to comment.