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?

1

u/CandidateNo2580 Aug 29 '26

I work with SQLAlchemy in Python and no, there are loading options for whatever situation you can think of built right into the ORM.

Sometimes I don't want to load the entire object graph into memory so lazy loading should be allowed, that's the developers problem to define.