-
Notifications
You must be signed in to change notification settings - Fork 1k
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
sp_BlitzCache inserts spill data twice when using sort order all or all avg #3331
Comments
created pull request #3333 |
You said pull request #3333 solves this, but it appears to be completely unrelated. |
Fixed in pull request #3336, check that one out. Thanks! |
Hi, apparently this does not solve the issue.
outputs a table with one row per pattern cpu, reads, writes, duration, executions, memory grant, spills but the target table ( To avoid this the return statement from the original pull request is needed. |
Forgive me, but I'm just not seeing it here, and you didn't include a repro query, so I can't easily reproduce this. I also can't find the pull request that's relevant to this - that's part of why I asked for one issue, one pull request. I'm reopening the issue because I bet you're on to something, I just can't see what/where it is. Can you either submit a pull request to fix this one specific issue (and nothing else), or give me a way to reproduce what you're seeing? Thanks for your patience! |
Thanks for the separate issue & pull request! I have not been able to reproduce this for love or money, hahaha, but I'm going to merge it because I don't think it'd break anything. Merging into the dev branch, will be in the next release with credit to you in the release notes. |
Version of the script
SELECT @Version = '8.16', @VersionDate = '20230820';
What is the current behavior?
spill data is inserted twice when using all or all avg sort order
If the current behavior is a bug, please provide the steps to reproduce.
call sp_BlitzCahch with @sortorder = 'all' and a output table
select from the configured outputtable using where Pattern = 'spills'
the row count is twice as @top parameter
What is the expected behavior?
spill data should be inserted only once.
Which versions of SQL Server and which OS are affected by this issue? Did this work in previous versions of our procedures?
This behavior is independent from the SQL Server version - the last step in the all sort order if case is inserted again. I have not tested previous versions.
I have created a patch already.
The text was updated successfully, but these errors were encountered: