cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Batch Fetch
Date Wed, 06 Jul 2016 06:07:53 GMT
IIRC in EOF this was "probabilistic", with framework trying to guess which other objects' relationships
to include in batch fetch. So we'd also need to track some kind of "affinity" of root objects
between each other. 

The first step would be to patch Cayenne to make org.apache.cayenne.reflect.FaultFactory injectable
(currently it is created inside EntityResolver). Then come up with a custom FaultFactory and
an algorithm for tracking the affinity of faults between each other. And make sure it doesn't
leak memory :)


> On Jul 6, 2016, at 12:20 AM, Mike Kienenberger <> wrote:
> That'd be something I'd get some use out of as well.
> On Tue, Jul 5, 2016 at 5:19 PM, Lon Varscsak <> wrote:
>> I know I’ve asked this before, but I need a batch fetch utility class, to
>> trigger batch fetching of relationships.  I know pre-fetching will do this,
>> but usually when I need it is after the fetch (and I don’t want to always
>> do it even when it’s not needed).
>> Anyone have any pointers on how to go about implementing this?
>> -Lon

View raw message