Can an LLM optimize your MongoDB queries? I tried it — here’s what actually worked

LLMs are great at rewriting code. So can one look at a slow MongoDB aggregation pipeline and rewrite it into a faster, equivalent one? I…