You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dashboard shows what it was built to show: Active Sessions, Server Metrics and Slow Queries, with a fixed metric set per engine (features/server-dashboard.mdx, What each engine reports). A query the user cares about, a queue depth, a row count, a lag figure, cannot be put on it, so a number worth watching lives in a query tab that has to be re-run by hand.
Proposed solution
Add a saved query to the dashboard as a tile, with its own refresh interval.
A tile renders a single number, a small table, or a line chart, chosen from the result's shape. The chart reuses the grid's chart mode (apple/TablePro/Views/Results/ResultChartView.swift).
Tiles run read-only: a saved query that is not a read is refused on the tile with the reason, never run on a timer.
A tile's interval starts at the dashboard's (1 to 30 seconds, apple/TablePro/Models/ServerDashboard/ServerDashboardModels.swift:18) but can be slower, so an expensive count does not run every second. Pause and Refresh Now cover tiles too.
Tiles arrangeable, and the layout saved per connection alongside the rest of the connection's state.
Reuse the existing saved query rather than adding a second place to write one. Editing the saved query updates the tile.
Done means a saved SELECT count(*) FROM jobs WHERE state = 'queued' shows as a number tile that refreshes on its interval and survives a relaunch.
Activity