At this point, the "optimization" you describe is fairly common
with CMP. If you vendor doesn't provide it, you should ask them
why not.
Fred Loney wrote:
> Typically 1+ N calls for N elements, but a container vendor might
> optimize this with a configuration extension.
>
> Fred Loney
> Spirited Software, Inc.
> www.spiritedsw.com
>
> ----- Original Message -----
> From: "Dongmei Cao" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 20, 2002 1:30 PM
> Subject: How many database calls
>
>
>
>>Hi,
>>
>>I have a question regarding the EJB 2.0 CMP.
>>I have an EntityBeanA and EntityBeanB. They have
>>one to many relationship. When I call
>>EntityBeanA.getEntityBeanB(), it should return a
>>Collection of EntityBeanB. My question is how
>>many database calls the container actually makes
>>when I make that call. Is it one call? Or one per
>>element in the collection?
>>
>>Thanks,
>>Dongmei
>>
>>
>
> ========================================================================
> ===
>
>>To unsubscribe, send email to [EMAIL PROTECTED] and include in the
>
> body
>
>>of the message "signoff EJB-INTEREST". For general help, send email
>
> to
>
>>[EMAIL PROTECTED] and include in the body of the message "help".
>>
>>
>
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>
--
_______________________________________________________________________________
Evan Ireland Sybase EAServer Engineering [EMAIL PROTECTED]
Wellington, New Zealand +64 4 934-5856
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".