13029 shaares
344 private links
344 private links
Instead of doing a single join, an innocent looking for loop can end up doing tons and tons of separate queries, resulting in much slower execution.
The 1+N problem occurs if a database request is made for every item returned by the first query.
The programming language Arcadia doesn't have recursion or loops, so the problem can not exist.