Query performance

production-primary · sampled continuously

p95 latency

184 ms↑ 23% from baseline

Queries / second

2,841Healthy throughput

Time in database

31.6%of request duration
QueryCallsp95Trend
SELECT orders JOIN customers18.4k812 ms↑ 41%
INSERT INTO events92.1k24 ms→ 2%
UPDATE accounts SET balance7.8k436 ms↑ 18%
">

The prompt

Build a query-performance workbench with Tailwind CSS. Include database and time-range filters, p95 latency and throughput metrics, a ranked query table with calls, rows, duration, and trend, plus a detail panel showing the selected SQL, execution-plan steps, and a recommendation. Add JavaScript that selects rows, updates the detail panel from data, and filters to slow queries only.

Paste it into Claude, Cursor, v0 or any AI coding tool. Prefer the finished markup? .