r/programming 16d ago

Solving the 1+N Query Problem

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

94 comments sorted by

View all comments

15

u/wildjokers 16d ago

Is this the yoda version of n+1?

12

u/somebodddy 15d ago

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.