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 :)

Andrus


> On Jul 6, 2016, at 12:20 AM, Mike Kienenberger <mkien...@gmail.com> 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 <lon.varsc...@gmail.com> 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

Reply via email to