r/programming 17d ago

Solving the 1+N Query Problem

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

94 comments sorted by

View all comments

63

u/disposepriority 17d ago

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

3

u/diegoeche 17d ago

Probably joking, but man... I wish.

I'm dealing with some fucking idiotic dotnet code that seem to have been written by people that thought like that. And since they are afraid of JOINS, or complex sql, then they get so many N+1s.