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

Long Running Queries Excepitons #1061

Open
aachaemenes opened this issue Oct 10, 2024 · 3 comments
Open

Long Running Queries Excepitons #1061

aachaemenes opened this issue Oct 10, 2024 · 3 comments

Comments

@aachaemenes
Copy link

Can we add exception for long running queries for DBADASH? there are queries and processes that we always know take time and we want them to be excluded from the long running query report which is really useful.

@DavidWiseman
Copy link
Collaborator

What criteria would you like to use to exclude items?

I can think of a couple - CDC & maybe XE live target. I'm not sure what the best option is for excluding these. Maybe based on wait type - excluding WAITFOR and XE_LIVE_TARGET_TVF.

@aachaemenes
Copy link
Author

aachaemenes commented Oct 11, 2024 via email

@FuriousDBA
Copy link

Hi @DavidWiseman
I can imagine below criteria:
-exclude database name (we have replication running so we can see batch_text like "create procedure sys.sp_replmonitorrefreshjob" running all the time). Excluding "distribution" database name in that case will resolve the issue.
-exclude wait type: WAITFOR (it should also cover above case)
-exclude exact Object Name (this will give some flexibility in excluding running stored procedures that we do not want to track)

My personal expectation is for this filter to work on Running queries(Longest Running Query column)
For sure it would be nice to be able to set these exclusions at both the root and instance level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants