r/programming 7d ago

Solving the 1+N Query Problem

https://acadia.engineering/blog/solving-the-1-plus-N-query-problem
131 Upvotes

94 comments sorted by

View all comments

62

u/disposepriority 7d ago

There is a really easy way of avoiding this when you just don't use ORMs

11

u/shoot_your_eye_out 7d ago

This problem has nothing to do with ORMs. I’ve seen people write this anti pattern in raw sql too many times to count.

7

u/disposepriority 7d ago

Yeah me too, I'm just an ORM hater and found my chance to spread the word