Summary
The MCP analysis engine already supports time-period comparison via `compare_analysis`. The UI should expose a similar concept for query performance data, letting users see how queries changed between two time periods.
Proposed Feature
A toggle or split-view on query grids that shows "this period vs baseline" side by side. After selecting a time range (via the slicer or time controls), toggle comparison mode to see the same queries from a prior period with delta columns.
Example Flow
- User selects a 4-hour window in the slicer (today 2pm-6pm)
- User enables "Compare" toggle
- Grid shows the same queries from yesterday 2pm-6pm alongside today's data
- Delta columns appear: "Duration Δ +340%", "CPU Δ -12%", "Executions Δ +500%"
- User immediately sees which queries regressed and which improved
Delta Columns
| Column |
Shows |
| Avg Duration Δ |
Percentage change in average duration |
| Avg CPU Δ |
Percentage change in average CPU |
| Execution Count Δ |
Percentage change in execution count |
| Avg Reads Δ |
Percentage change in logical reads |
Design Notes
- Pairs naturally with the slicer — the slicer selects "now," comparison shows "vs. then"
- Baseline period options: same window yesterday, same window last week, custom
- Delta columns should be color-coded: red for regression, green for improvement
- Sorting by delta columns lets users find the biggest regressions instantly
- Higher complexity: requires baseline data fetch + join logic + split UI
- Applies to both Dashboard and Lite
Summary
The MCP analysis engine already supports time-period comparison via `compare_analysis`. The UI should expose a similar concept for query performance data, letting users see how queries changed between two time periods.
Proposed Feature
A toggle or split-view on query grids that shows "this period vs baseline" side by side. After selecting a time range (via the slicer or time controls), toggle comparison mode to see the same queries from a prior period with delta columns.
Example Flow
Delta Columns
Design Notes