Measures What Actually Runs
Reads the statistics PostgreSQL, MySQL and CockroachDB already keep for every query, and Trino's query events. Each execution counts once. No proxy in front of your traffic, no SDK in your application.
QueryInsights handles the full SQL performance loop: it measures what your database actually spends time on, proves which schema changes help the whole workload, and hands you changes you can ship, without ever getting in the way.
Reads the statistics PostgreSQL, MySQL and CockroachDB already keep for every query, and Trino's query events. Each execution counts once. No proxy in front of your traffic, no SDK in your application.
Thousands of queries collapse into a handful of patterns by replacing literals with placeholders. You see what's truly heavy — not duplicates dressed up as different queries.
Every slow query pattern gets a focused AI query-optimization review grounded in your real table definitions — predicate ordering, join shape, engine-specific gotchas, written so an engineer can ship it.
Candidate indexes are tested on an empty copy of your schema with production's statistics. Your database's own optimizer costs the whole top-N workload, and any change that slows a query is rejected.
Patterns are ranked by total execution time, calls and rows read from your database's own counters. Traffic you can't change, like a Spark job, can be ignored or kept for schema advice only.
Indexes that no query reads, and indexes another index already covers, are found straight from the catalog with no AI involved. Each comes with the DROP statement and a caution about when usage counters reset.
These two stay deliberately non-overlapping so the advice you get is always actionable, never contradictory.
Each unique pattern gets focused AI review grounded in your real table definitions. You get a rewritten query, not generic pointers — predicate ordering, join shape, projection scope, and engine-specific nuance, all in one place.
Index changes are searched and costed on a workload twin across your top query patterns at once. You see a set only when it lowers total cost and no query gets slower, with each query's plan before and after.
QueryInsights is in early access. Tell us a little about your workload and we'll be in touch.
Or email us at bhargav.akhani@queryinsights.dev