Skip to content

Add Query Heatmap sub-tab to Lite#739

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/query-heatmap
Mar 27, 2026
Merged

Add Query Heatmap sub-tab to Lite#739
erikdarlingdata merged 1 commit intodevfrom
feature/query-heatmap

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • New Query Heatmap sub-tab under Queries showing query distribution across log-scale metric buckets over time
  • Selectable metrics: Duration, CPU, Logical Reads, Logical Writes, Execution Count
  • Hover tooltips with time, bucket range, query count, and top query by execution count
  • Right-click drill-down to Active Queries for the hovered time window
  • Colorbar legend with whole-number query count scale

Test plan

  • Connect to a server with collected data, navigate to Queries > Query Heatmap
  • Verify heatmap renders with correct Y-axis labels (0-1ms at bottom, >100s at top)
  • Switch metric dropdown — heatmap should refresh
  • Hover over colored cells — tooltip shows time, bucket, count, top query
  • Right-click a cell — "Show Active Queries at This Time" navigates to Active Queries with correct time filter
  • Change time range — heatmap updates
  • Verify colorbar shows whole numbers

Addresses #690

🤖 Generated with Claude Code

New "Query Heatmap" sub-tab showing query distribution across log-scale
metric buckets (Duration, CPU, Reads, Writes, Execution Count) over time.

- DuckDB query buckets per-execution averages into 7 log-scale bands
  per 5-minute time window using time_bucket()
- ScottPlot heatmap with Viridis colormap, FlipVertically for natural
  Y-axis ordering (fast queries bottom, slow top)
- Colorbar with whole-number query count ticks (log1p scaled)
- Hover tooltip showing time, bucket range, count, and top query
  (by execution count via ARG_MAX)
- Right-click "Show Active Queries at This Time" drill-down to
  Active Queries tab with ±5 min time window
- Metric selector dropdown to switch between Duration/CPU/Reads/Writes/Executions

Addresses #690

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 99d52a4 into dev Mar 27, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/query-heatmap branch April 9, 2026 00:33
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