


I built a tool that does the slow query to execution plan to index recommendation loop
Over the years, I've worked with many different database engines, but every single time I had to diagnose the origin of slow queries, I ended up doing the same repetitive process over and over again:
- pull query stats and sort by total time rather than mean time
- run EXPLAIN ANALYZE on whatever comes out on top
- go find the table definitions for everything it touches
- check whether the column statistics are current
- work out whether the index you have in mind already exists under another name
- decide whether it is worth adding
- do it again for the next query
Eventually I grew tired of needing to manually assemble the picture myself every single time, so I built RDST, which is a desktop database analyzer tool that currently works with both Postgres and MYSQL.
RDST collapses the entire workflow shown above into one pass, so instead of starting at step one I get to the answer immediately when a slow query is detected.
RDST is AI powered, but it is not random slop analysis applied to random database statistics. The reasoning layer runs inside a fixed workflow in a semi-deterministic way, so pointing it at the same database twice gives you the same answer, which matters when you are deciding whether to add an index in production.
Full disclosure - I work for Readyset (which is a caching layer for Postgres / Mysql), and this tool spawned from a recurring issue we had to solve for our customers - which queries should we actually cache? And these same queries are the ones that, even without a caching solution, could heavily benefit from performance diagnostics.
Beyond diagnostics, RDST provides full rewrite suggestions and lets you benchmark slow queries and track their performance over time.
One other neat feature is that it also lets you ask questions about your database in plain english using NL --> SQL in a safe and secure manner with limited permissions.
It also integrates directly with Supabase, Neon, AWS RDS and DigitalOcean, making database discovery seamless.
The tool is completely free to use, and we provide free trial tokens for all of the AI powered features. The app is in beta and we plan to release it under an MIT license. It runs locally, stores locally and everything it does is read-only. Full privacy related details: https://readyset.io/docs/readyset-ai/rdst/desktop/privacy
I would greatly appreciate any feedback from this community, particularly:
- Does it surface the queries you'd investigate first?
- Are its explanations and recommendations useful, or merely confident-sounding database fan fiction?
- Is the fixed workflow the right call, or would you rather have a chat interface?
- What's missing?
Source: