Tool idea,
sits between your app(s) and your DBs
analyzes the queries and suggests improvements
keeps metrics on queries
based on usage, it could recommend stuff like adding an INDEX to tables and stuff like that
Could AI it based on DB best practices
Please Login To Post
https://youtu.be/kkjAxSViOAA?si=FZqWm14hZwPMjjGh
Saving a SaaS on the weekend - PlanetScale
It's about analyzing a query to put an index to shrink a query from searching 500,000 rows to ~1,400 each time
This analysis is what I want automated lol
Two of the better related tools are Sentry and planetscale.
I think planetscale does the closest to what I want, but SaaS/you pay them to host your DB.
I also don't want it tied to a SaaS service by someone else. Quite a few of my things are on-prem only.
I realized this bc there's a query that's been in one of the work webapps since 2009 or so and I've never touched it.
My coworker was on that site for some upgrades and noticed it was slow and my boss added an INDEX and it made the query from 5sec to <1sec.
I'm always on the test servers instead of the real servers and the test servers have a tiny subset of the data.
Additionally, it may not have been a problem when developing but then 10 years later maybe that query is slow bc the table got big.
My users have been using it and they don't know to ask because it just gradually got slower - nothing broke.
I'm not going to go through and performance test every DB query across 70+ webapps I support all the time. I know everything works but something else should tell me how to make it work better.
Plus, I never really got good at indexes or other DB features but it's almost 2024 - I shouldn't have to be good at anything anymore lol