db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Nitz ...@ukr.net>
Subject Re: Cache and prefetched relationships
Date Mon, 06 Oct 2003 10:21:54 GMT
Hi Carlos,

On Sunday 05 October 2003 14:37, carlos wrote:
> broker.getCollectionByQuery(): Optimised prefetched relationships are only
> useful if object caching is enabled.
>
> Also, using the default cache, it appears that any related objects obtained
> by an optimised SQL IN() clause may be 'garbage collected' before being
> assigned to the 'owning object', causing another database lookup at
> assigment.  I believe I've observed this behaviour retrieving many objects
> (2000+) - Is this correct?
Looking at the ReferencePrefetcher implememntation, I see that this is 
possible for references (not for collections). Also I see that this problem 
can be easily fixed. I'll do this.

Thanks,
 Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Mime
View raw message