Instead of leaving the AI to figure out the right way to query something from the db, I can flag a potential n+1 issue from the very start.
I think I need to revisit this topic and share my approach in more detail...
-ai -engineering -coding