Finders currently hit the database n+1 times (where N is the number of
beans selected by the query).
-danch
Sacha Labourey wrote:
>
> Hello,
>
> I have question regarding the way finders work in the current
> implementation.
>
> When using CMP and invoking a ejbFindXXX method returning a collection of
> beans, if I then invoke a method on each of these beans, will they each
> require a DB call (select * from xxx where PK = x) or does the ejbFindXXX
> call cache the DB information that can be reused for these subsequents bean
> calls (during the whole transaction)?
>
> Thank you. Cheers,
>
> Sacha
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
--
Dan Christopherson (danch)
nVisia Technical Architect (www.nvisia.com)
Opinions expressed are mine and do not neccessarily reflect any
position or opinion of nVISIA.
---------------------------------------------------------------------------
If you're a capitalist and you have the best goods and they're
free, you don't have to proselytize, you just have to wait.
-Eben Moglen
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user