What is the N+1 in ejb?

The N+1 looks fancy you might think wow this probably has got to dome something with O(n) etc?

Well

1 - findAll() - fetch all the primary keys in a single select.
N - for each record fetch it, select per each record.

That's it.  Someone should have mentioned its pretty dumb...

Comments