Query History
query_historyAnalyze slow or long-running SingleStore queries over time, filter by runtime, and review tuning advice from stored history.
Instructions
Open the Query History: every finished query on the cluster with its runtime, user, database and result, filtered by minimum runtime (1 s and up). Select a query in the app for tuning recommendations.
Uses SingleStore's query history (event tracing, information_schema.MV_TRACE_EVENTS). Use this when the
user asks about slow / long-running queries or jobs over time (the Cluster Monitor shows only what's
running now).
Args:
min_seconds: Only queries that ran at least this long (minimum 1).
hours: Only the last N hours (default: everything in the history).
tab: "queries" (default), "trends" (daily / hourly load, failures and p95 from a local copy of the history
kept across the cluster's ring buffer, plus queries that got slower) or "advisor" (table-design advice
from the whole history).
The result includes ``browser_url``: post it as a clickable link right under the app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | queries | |
| hours | No | ||
| min_seconds | No |