From c2fc4e10cd266bd0f5c93b50b9036136769b8210 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Tue, 24 Feb 2026 21:40:44 -0500 Subject: [PATCH] Issue #274: Query Store Regressions drill-down + TVF rewrite Rewrite report.query_store_regressions TVF with bounded baseline (mirror window instead of unbounded), execution-count weighted averages, multi-metric detection (duration/CPU/reads >25%), absolute minimum thresholds, and total impact ranking (additional_duration_ms). Deployed to sql2017-sql2025. Add double-click drill-down from regressions grid to QueryExecutionHistoryWindow. Add new grid columns: Total Impact, Base/Recent Exec Counts, Base/Recent Plan Counts. Fix chart:grid ratio to 3*:2* with MinHeight 300 across all drill-down windows. Lower sparse data threshold from 10 to 1 so lines always connect with 2+ points. Fix QueryExecutionHistoryWindow sparse threshold to use total count not per-plan count. Fix tooltip registration to collect scatters in loop instead of GetPlottables(). Co-Authored-By: Claude Opus 4.6 --- .../Controls/QueryPerformanceContent.xaml | 43 ++++++++++++++++++- .../Controls/QueryPerformanceContent.xaml.cs | 32 ++++++++++++++ Dashboard/Models/QueryStoreRegressionItem.cs | 5 +++ Dashboard/ProcedureHistoryWindow.xaml | 4 +- Dashboard/ProcedureHistoryWindow.xaml.cs | 2 +- Dashboard/QueryExecutionHistoryWindow.xaml | 4 +- Dashboard/QueryExecutionHistoryWindow.xaml.cs | 14 +++--- Dashboard/QueryStatsHistoryWindow.xaml | 4 +- Dashboard/QueryStatsHistoryWindow.xaml.cs | 2 +- .../DatabaseService.QueryPerformance.cs | 30 +++++++++---- 10 files changed, 117 insertions(+), 23 deletions(-) diff --git a/Dashboard/Controls/QueryPerformanceContent.xaml b/Dashboard/Controls/QueryPerformanceContent.xaml index 46d4d4ea..948c6cde 100644 --- a/Dashboard/Controls/QueryPerformanceContent.xaml +++ b/Dashboard/Controls/QueryPerformanceContent.xaml @@ -1417,7 +1417,8 @@ + RowStyle="{DynamicResource DefaultRowStyle}" + MouseDoubleClick="QueryStoreRegressionsDataGrid_MouseDoubleClick"> @@ -1451,6 +1452,46 @@ + + + +