Remix.run Logo
cyral 3 hours ago

I'm surprised to hear this. I've found AI incredibly useful for optimizing queries. Give it the EXPLAIN ANALYZE output of your query and it will have no problem optimizing it

BowBun 3 hours ago | parent [-]

Same here, this seems like a setup issue.

If you give the LLM the ability to run queries against prod-like data and review the paths, you have a fully autonomous system that can correctly optimize your ORM/queries. Been doing this for months.

pgAnalyze is a great complementary tool for this and they offer MCP