Captures What Actually Runs
Ingest the live SQL workload from PostgreSQL, MySQL, and Trino via webhooks or lightweight pollers. No proxy in front of your traffic, no SDK in your application.
QueryInsights is an AI-powered SQL performance tool. It watches your live PostgreSQL, MySQL, and Trino workload, surfaces the slow queries hurting database performance, and turns every pattern into actionable query rewrites and indexing advice — automatically.
Works with PostgreSQL, MySQL, and Trino. No proxy. No code changes.
Query optimization shouldn't mean staring at execution plans for hours. QueryInsights does the slow-query analysis for you and hands back the fix.
Your database is slow.
You know it. But you don't know which query, on which table, in which pattern — and dashboards full of metrics don't tell you what to actually change.
Slow queries hide in noise.
The same query runs a thousand ways. Without normalization you can't tell which patterns truly drive load, so slow-query analysis turns into endless log scrolling.
EXPLAIN only goes so far.
Reading query plans one statement at a time is slow, and generic SQL tuning advice ignores your real PostgreSQL, MySQL, or Trino schema. You end up rewriting queries by hand and hoping it helps.
The slowest queries in your workload land on your screen, with the fix already written.
QueryInsights closes the loop between “something is slow” and “here is exactly what to change” — automatically, for every pattern in your workload.
Ingest the live SQL workload from PostgreSQL, MySQL, and Trino via webhooks or lightweight pollers. 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.
Periodic AI analysis across your top tables and access patterns surfaces index recommendations and schema changes that improve database performance broadly — not just for one query in isolation.
Query patterns are ranked by frequency and cost, so the slow queries at the top are the ones worth optimizing first. No more guessing where your database performance is going.
Slow queries burn CPU and scan extra data. By fixing your heaviest patterns first, QueryInsights lowers database resource usage and helps reduce query compute and cloud database costs.
QueryInsights sits beside your PostgreSQL, MySQL, or Trino database, learns from the queries that actually run, and turns that into specific query-optimization advice — so you stop guessing where to look.
Pick up live queries via webhooks from your engines or via lightweight pollers that read query statistics directly. Nothing sits in your traffic path.
Strip out the literals so a thousand variants of the same query collapse into a single pattern. You see real workload shape, not noisy duplicates.
Each pattern is paired with the real table definitions it touches, so the AI has the context it needs to reason about your database, not a generic one.
Get specific, ready-to-ship rewrites for individual queries — and broader schema and index advice for the whole workload, updated as it evolves.
QueryInsights is a side-car for your databases — it observes, learns, and serves up advice. Nothing in the request path. Nothing for your application to integrate.
Every top query in your workload gets its own AI review — grounded in your real schema, written like a teammate would write it.
SELECT *
FROM orders o
JOIN line_items l ON l.order_id = o.id
WHERE o.created_at > ?
ORDER BY o.id
LIMIT ?Wide SELECT *, late filter, unbounded top-N sort over a join on a hot table.
SELECT o.id, o.created_at, l.sku, l.qty
FROM orders o
JOIN line_items l ON l.order_id = o.id
WHERE o.created_at > ?
AND o.id > ? -- keyset pagination
ORDER BY o.id
LIMIT ?What QueryInsights does, which databases it supports, and how it finds and fixes slow queries.
QueryInsights is an AI-powered SQL performance and query optimization tool. It watches your live database workload, identifies the slow queries and query patterns that hurt performance, and suggests specific rewrites and schema changes — so your team fixes the highest-impact problems first.
QueryInsights works with PostgreSQL, MySQL, and Trino, and is built to extend to other SQL engines. Whether you run a transactional Postgres or MySQL database or a distributed Trino query engine, it captures the real workload and analyzes it the same way.
A SQL query is usually slow because it scans more data than it needs, filters too late, joins inefficiently, or is missing an index. QueryInsights acts as a query profiler and database advisor: it pinpoints which of your query patterns are slow and why, then recommends the specific change to fix it — instead of leaving you to guess from a query plan.
It captures the queries that actually run, normalizes them into patterns by stripping out literal values, and ranks those patterns by frequency and impact. Instead of scrolling through thousands of individual statements, you see the handful of slow query patterns that account for most of your database load.
Speeding up a slow query usually means scanning less data, filtering earlier, fixing the join or projection, or adding the right index. QueryInsights does this analysis for you: it captures the query that's taking too long, grounds an AI review in your real schema, and returns a ready-to-ship rewrite plus any index that improves query response time.
Two complementary kinds. Per-query rewrites show how a specific slow query can be written better — predicate ordering, join shape, projection scope, and engine-specific tuning. Workload-level advice recommends indexes, schema, and storage-layout changes that speed up your entire access pattern, not just one query.
No — it complements them. EXPLAIN and execution plans tell you how one query runs right now; QueryInsights tells you which queries across your whole workload are worth optimizing and hands you a concrete fix, grounded in your real schema, so you spend less time reading query plans by hand.
Often, indirectly. Slow queries burn CPU, scan extra data, and tie up resources. On cloud and managed databases where you pay for query compute or scanned data, optimizing your heaviest query patterns lowers database resource usage and can reduce compute costs. QueryInsights ranks patterns by impact so you cut the most expensive ones first.
Two non-invasive paths: webhook-based capture from engines that emit query events, and lightweight pollers that read query statistics directly from the database. There is no proxy in front of your traffic and no SDK in your application, so it can never affect latency or availability.
No. QueryInsights observes your database performance from the side. There are no driver changes, no SDKs, and no code changes required to start getting slow-query analysis and optimization recommendations.
QueryInsights is in early access. Reach out to be notified when it opens up more broadly and to get help connecting your PostgreSQL, MySQL, or Trino workload.
QueryInsights is in early access. Tell us a little about your workload and we'll be in touch.
Or email us at hello@queryinsights.dev