News for hackers. Stuff that matters.
Re:Understanding N + 1 queries problem by kstrauser on Monday January 02, 2023 @03:17PM (#34223070)
I really wish this been originally called the “1+N problem”, not “N+1”. That naming makes it much clearer to me.
Re:Understanding N + 1 queries problem by pharmakom on Tuesday January 03, 2023 @03:06AM (#34229051)
Or even the “1 then N problem” since we determine the N from the 1.
Re:Understanding N + 1 queries problem by Izkata on Tuesday January 03, 2023 @09:44AM (#34231925)
I swear that's what it was called when I was first introduced to it a decade ago. When I first saw one of the posts focused on it on here I didn't initially recognize it as referring to the same thing.
Re:Understanding N + 1 queries problem by kstrauser on Tuesday January 03, 2023 @01:32PM (#34235676)
I don't remember how I heard it originally, but I wouldn't have recognized it as the same, either. To me, "N+1" implies you're already doing N queries and now you're running 1 more. That's a different class of problem than "you were running 1 query, and now you're running more than 1."