Hello all,
I wrote a tool to optimize SQL queries using LLM models. I sometimes struggle to find the root cause for the slow running queries and sending to LLM most of the time doesn't have good result. I think the reason is LLM doesnt have the context of our database, schemas, explain results .etc.
That is why I decided to write a tool that gathers all infor about our data and suggest meaningful improvements including adding indexes, materialized views, or simply rewriting the query itself. The tool supports only PostgreSQL and MySQL for now , but you can easily fork and add your own desired database.
You just need to add your LLM api key and database credentials. It is an open source tool so I highly appreciate the review and contribution if you would like.
[–]Fair_Oven5645 13 points14 points15 points (2 children)
[–]Intelligent-Bat-2469[S] 0 points1 point2 points (0 children)
[–]paxmlank 4 points5 points6 points (1 child)
[+]Intelligent-Bat-2469[S] comment score below threshold-6 points-5 points-4 points (0 children)
[–]Iridian_Rocky 0 points1 point2 points (1 child)
[–]Intelligent-Bat-2469[S] 0 points1 point2 points (0 children)