Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit Resource DB from duplicate query plan checks #3315

Merged
merged 2 commits into from
Aug 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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