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

sp_BlitzFirst: check TempDB for forwarded fetches #2248

Closed
BrentOzar opened this issue Jan 10, 2020 · 0 comments · Fixed by #2250
Closed

sp_BlitzFirst: check TempDB for forwarded fetches #2248

BrentOzar opened this issue Jan 10, 2020 · 0 comments · Fixed by #2250

Comments

@BrentOzar
Copy link
Member

Is your feature request related to a problem? Please describe.
Troubleshooting a server with >10K forwarded fetches/sec, but the user databases didn't show any active heaps. Turned out it was objects in TempDB.

Describe the solution you'd like
When we throw the high forwarded fetches/sec warning, let's also check TempDB to see if there are any objects in there with high forwarded fetches. This list could get big, so just do the top, say, 10 ordered by forwarded fetch count descending, like:

USE tempdb;
GO
SELECT TOP 10 OBJECT_NAME(os.object_id), *
FROM sys.dm_db_index_operational_stats(DB_ID('tempdb'), NULL, NULL, NULL) os
WHERE forwarded_fetch_count > 0
ORDER BY forwarded_fetch_count DESC;

Describe alternatives you've considered
Putting that above query on the forwarded fetches/sec help page, but that won't capture the problem when it's happening.

Are you ready to build the code for the feature?
Does the Pope poop in the woods?

@BrentOzar BrentOzar added this to the 2020-01 Release milestone Jan 10, 2020
@BrentOzar BrentOzar self-assigned this Jan 10, 2020
BrentOzar added a commit that referenced this issue Jan 10, 2020
Look for temp tables with high forwarded fetches. Closes #2248.
BrentOzar added a commit that referenced this issue Jan 10, 2020
…_forwarded_fetches

#2248 sp_BlitzFirst tempdb forwarded fetches
CubsRep pushed a commit to CubsRep/SQL-Server-First-Responder-Kit that referenced this issue Feb 6, 2020
Look for temp tables with high forwarded fetches. Closes BrentOzarULTD#2248.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant