Skip to content

Saved queries on the Server Dashboard #2538

Closed

Description

@datlechin

Problem

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.

Alternatives considered

Keep a query tab open and press run.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    on Aug 26, 2026
  2. added
    platform-macos
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions