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.QueryPerformance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ FROM report.query_stats_summary AS qs
OR (qs.last_execution_time >= @fromDate AND qs.last_execution_time <= @toDate)
OR (qs.first_execution_time <= @fromDate AND qs.last_execution_time >= @toDate)))
)
AND qs.query_text NOT LIKE N'WAITFOR%'
ORDER BY
qs.avg_worker_time_ms DESC;";

Expand Down Expand Up @@ -989,6 +990,7 @@ FROM report.query_store_summary AS qss
OR (qss.last_execution_time >= @fromDate AND qss.last_execution_time <= @toDate)
OR (qss.first_execution_time <= @fromDate AND qss.last_execution_time >= @toDate)))
)
AND qss.query_sql_text NOT LIKE N'WAITFOR%'
ORDER BY
qss.avg_cpu_time_ms DESC
OPTION
Expand Down
1 change: 1 addition & 0 deletions Lite/Services/LocalDataService.QueryStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ FROM query_stats
WHERE server_id = $1
AND collection_time >= $2
AND collection_time <= $3
AND query_text NOT LIKE 'WAITFOR%'
GROUP BY database_name, query_hash
ORDER BY SUM(delta_elapsed_time) DESC
LIMIT $4";
Expand Down
1 change: 1 addition & 0 deletions Lite/Services/LocalDataService.QueryStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ FROM query_store_stats
WHERE server_id = $1
AND collection_time >= $2
AND collection_time <= $3
AND query_text NOT LIKE 'WAITFOR%'
GROUP BY database_name, query_id, plan_id, query_hash
ORDER BY SUM(execution_count) * AVG(avg_duration_ms) DESC
LIMIT $4";
Expand Down