Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions Dashboard/Services/DatabaseService.NocHealth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,8 @@ CROSS APPLY sys.dm_exec_sql_text(r.sql_handle) AS t
JOIN sys.dm_exec_sessions AS s ON s.session_id = r.session_id
WHERE r.session_id > 50
AND r.total_elapsed_time >= @thresholdMs
AND t.text NOT LIKE N'%waitfor delay%'
AND t.text NOT LIKE N'%waitfor receive%'
ORDER BY r.total_elapsed_time DESC
OPTION(MAXDOP 1, RECOMPILE);";

Expand Down
2 changes: 2 additions & 0 deletions Lite/Services/LocalDataService.WaitStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ FROM v_query_snapshots
AND collection_time = (SELECT MAX(collection_time) FROM v_query_snapshots WHERE server_id = $1)
AND session_id > 50
AND total_elapsed_time_ms >= $2
AND query_text NOT LIKE '%waitfor delay%'
AND query_text NOT LIKE '%waitfor receive%'
ORDER BY total_elapsed_time_ms DESC
LIMIT 5";

Expand Down
Loading