cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: No willPerform(Generic)Query support for prefetching queries in 3.1?
Date Fri, 27 Sep 2013 15:39:51 GMT
Great. Sorry I didn't have enough time to dig deeper into this, so my advice on this matter
wasn't that helpful.

Andrus

On Sep 27, 2013, at 5:29 PM, Mike Kienenberger <mkienenb@gmail.com> wrote:

> I wrote,
>>> From what testing I've done so far, the qualifier isn't put on for
>>> prefetch queries, which leaves me at the same situation as when using
>>> my datacontext delegate.
> 
> On Tue, Sep 24, 2013 at 1:48 PM, Andrus Adamchik <andrus@objectstyle.org> wrote:
>> This is bad and is not supposed to happen. Appears to be a bug. I am checking SelectQueryPrefetchRouterAction,
>> and it applies *root* entity qualifier to prefetch query instead of prefetched entity.
Should be a relatively easy fix for "disjoint"
>> prefetches at least.
> 
> I am closing CAY-1875 as invalid.  My original testing of entity
> qualifiers must have been flawed, possibly due to interactions with
> other changes I had already made.   Once I removed the
> willPerformQuery code entirely, and disabled my application-level
> qualifiers completely, the prefetching using entity qualifiers worked
> as expect in my application.
> 
> The prefetch entity qualifier is actually added in QualiferTranslator,
> not in SelectQueryPrefetchRouterAction.  That root entity qualifier is
> rightly inherited from the original query as we don't want to prefetch
> records for unrelated root entity objects.  Sorry for the false alarm.
> 


Mime
View raw message