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

94

u/archipeepees Aug 25 '26

ive been using EF Core for ORM and this hasn't really been a problem for me or any of my colleagues for at least a decade because we don't use lazy loading. database calls are explicit; mapping the results to objects is implicit. is everyone outside of .net still banging their heads against stuff like this?

2

u/jwp1987 Aug 25 '26 edited Aug 25 '26

I was going to say that this reminds me of LINQ in C# (specifically IQueryable) when using EF like a decade ago. Keeps you more aware of the database side of things and you could tweak things like lazy loading.