- If one has an object and the object has a collection of children...
- And, if one queries the number of children...
- And if one then runs a while (myCounter < numberOfChildren) loop, querying a child object for each of the passes through the loop...
- One will have n number of queries for n number of children...
- +1 query for the query to get the count (or is it the query to get the object to begin with? –I’m fuzzy on this.)
Tuesday, October 4, 2011
what is an n+1 problem?
I often heard talk of n+1 problems when I worked at Headspring. Today was the day I finally asked someone (Rafael Torres) what an n+1 problem is.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment