Re: [JBoss-user] CMP and finders: optimized?

2001-05-06 Thread Jakob Braeuchi

hi,

on serverside.com there's a pattern called 'Fat-Key' that may help to solve
this problem:

http://www.theserverside.com/patterns/thread.jsp?thread_id=4540

cheers
jakob

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CMP and finders: optimized?

2001-05-05 Thread Sacha Labourey

Thanks Danch!

(even if the answer does not make me happy ;) )


Cheers,



Sacha


 -Message d'origine-
 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)?


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] CMP and finders: optimized?

2001-05-04 Thread Sacha Labourey

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