News for hackers. Stuff that matters.
Re:Understanding N + 1 queries problem by Arch-TK on Monday January 02, 2023 @04:31PM (#34223939)
If you intentionally write poor code with plain SQL you will have the same problem as the auto-generated poor code of a lot of ORMs? Yes?

I don't think Wordpress is relevant here in any way. If the code is poorly written and has N+1 queries problems then it is either poorly written or is trying to half-ass an ORM.

Lastly, I would like a lot of citations to prove to me that ORMs produce more efficient queries. What produces more efficient queries in all my experience is a good understanding of relational databases, better query planners and better database design.

There are no comments on this comment yet.