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

Output wait duration in a dedicated column #82

Open
ant-222 opened this issue Mar 2, 2022 · 1 comment
Open

Output wait duration in a dedicated column #82

ant-222 opened this issue Mar 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ant-222
Copy link

ant-222 commented Mar 2, 2022

Proposal

The current version of sp_whoisactive reports wait duration as part of the text value in the wait_info column, which is human-oriented and unamenable to sorting, filtering, or any other automated, machine-based analysis. This is a request for a dedicated numeric column to store this important metric—wait_duration or wait_duration_ms (for milliseconds)—that shall be usable in MSSQL predicates and operators and shall facilitate quantitative lock analysis and automated gathering of wait statistics.

Whereas the numeric value of lock duration is already used internally inside sp_whoisactive, this request should not be hard to implement.

Sample use

  1. Monitor waits longer than 30 seconds.
  2. Sort collected wait information by duraition.
@erikdarlingdata erikdarlingdata changed the title Output wait duration in a decicated column Output wait duration in a dedicated column Aug 25, 2022
@erikdarlingdata erikdarlingdata added the enhancement New feature or request label Aug 25, 2022
@imajaydwivedi
Copy link

+1 for this enhancement. Is anyone working on this?
If not, I can take this one.

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

No branches or pull requests

3 participants