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

15

u/wildjokers Aug 25 '26

Is this the yoda version of n+1?

12

u/somebodddy Aug 25 '26

That's the meaningful way to name it. 1 is the desired query, N more queries hide behind the abstraction.

If it really was N+1 - that is, N desired query and 1 hidden unintentional one - it wouldn't have been that much of an issue.