Skip to content

Add per-tab time range slicers to Lite query tabs#655

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/active-queries-slicer
Mar 20, 2026
Merged

Add per-tab time range slicers to Lite query tabs#655
erikdarlingdata merged 1 commit intodevfrom
feature/active-queries-slicer

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

Interactive time range slicers on all four Lite query sub-tabs:

  • Active Queries: Sessions/CPU/Elapsed/Reads per hour
  • Top Queries by Duration: Total/Avg CPU, Duration, Reads, Writes
  • Top Procedures by Duration: Same metrics as Query Stats
  • Query Store by Duration: Total/Avg CPU, Duration, Reads, Executions

Each slicer:

  • Respects the global time picker (1h/4h/24h/7d) and reloads on change
  • Updates metric + chart when the grid sort column changes (total vs avg)
  • Snaps to hourly bucket boundaries for accurate filtering
  • Supports Local/UTC/Server time display mode
  • Drag handles to narrow time range, Ctrl+scroll to zoom

Also includes date column fixes from #649/#651:

  • Query Stats: Last Execution + Creation Time columns added after Database
  • Procedure Stats: Last Execution added, Cached Time moved from end to after Type
  • Query Store: Last Execution + First Execution moved to after Plan ID

Test plan

  • Build: 0 errors
  • All four slicers render and load data
  • Slider drag filters grid results
  • Sort column changes slicer metric label and chart
  • Time picker change reloads slicer
  • Local/UTC/Server display mode updates slicer labels
  • Hour-boundary snapping prevents data disappearing at bucket edges

🤖 Generated with Claude Code

- Active Queries: slicer shows session count, CPU, elapsed, reads per hour
- Top Queries by Duration: slicer shows query stats metrics with total/avg switching
- Top Procedures by Duration: slicer shows procedure stats metrics
- Query Store by Duration: slicer shows Query Store metrics

All slicers:
- Respect the global time picker (1h/4h/24h/7d)
- Update metric label and chart when grid sort column changes
- Snap to hourly bucket boundaries for accurate filtering
- Support Local/UTC/Server time display mode
- Reload on time range change

Also adds missing date columns (#649, #651):
- Query Stats: Last Execution and Creation Time after Database
- Procedure Stats: Last Execution and Cached Time after Type (moved from end)
- Query Store: Last Execution and First Execution moved after Plan ID

Closes #649
Closes #651

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 600ac70 into dev Mar 20, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/active-queries-slicer branch April 10, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant