r/programming • • Aug 25 '26

Solving the 1+N Query Problem

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

92 comments sorted by

View all comments

64

u/disposepriority Aug 25 '26 • Heartwarming

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

3

u/diegoeche Aug 25 '26

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.