Re: Inheritance and prefetching
Happy to help! Sometimes it pays to be a dinosaur :) Ken > On Dec 11, 2013, at 12:05 PM, Alexis Tual wrote: > > Many thanks Ken, that was it ! > I've added all back-pointing relationships (no need to generate attributes > for them) and prefetch works, even on the parent entity (A in my example), > that's a great improvement ! > > Cheers, > > Alex > > > 2013/12/9 Alexis Tual >> Yes it's referencing A in my example. Do I have to reference all subentities >> of A ? I'll try tomorrow at the office. >> >> Thanks >> >> Alex >> >> >> 2013/12/9 Ken Anderson >>> Is the back pointing relationship referencing the superclass? You need to >>> create multiple relationships, specifically naming all the subclasses. >>> On Dec 9, 2013, at 5:41 PM, Alexis Tual wrote: Hi Ken, thanks for your suggestion, but I already have the backpointing relationship... I'll try to do a simple projet to isolate the issue. Alex 2013/12/6 Ken Anderson > In ancient times… (and I mean like, 15 years ago) > > A back pointing relationship from the subclasses of B to the abstract A > (where the to-many relationship ‘toB' is) was necessary for all the > plumbing to hook things up when the EOs came back from the prefetch. > > Ken > > On Dec 5, 2013, at 3:08 PM, Alexis Tual wrote: > > > Hi, > > > > I have 2 single table hierarchies : > > - B1 inherits from B > > - A1 inherits from A (abstract), A1 has a to-many relationship to B, > > let's call it toBs > > > > is it possible to prefetch this relationship ? > > > > We can't manage to get it work, I'll past the obscure exception > > tomorrow but can anyone confirm that this kind of prefetch works with > > EOF ? > > I've also tried ERXBatchFetchUtilities which seems promising "This > > works much like prefetching with fetch specifications, however this > > implementation is able to work around inheritance where prefetching > > fail", but no luck :/ > > > > Thanks > > > > Alex > > > > ___ > > Do not post admin requests to the list. They will be ignored. > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com > > > > This email sent to kenli...@anderhome.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inheritance and prefetching
Many thanks Ken, that was it ! I've added all back-pointing relationships (no need to generate attributes for them) and prefetch works, even on the parent entity (A in my example), that's a great improvement ! Cheers, Alex 2013/12/9 Alexis Tual > Yes it's referencing A in my example. Do I have to reference all > subentities of A ? I'll try tomorrow at the office. > > Thanks > > Alex > > > 2013/12/9 Ken Anderson > >> Is the back pointing relationship referencing the superclass? You need >> to create multiple relationships, specifically naming all the subclasses. >> >> On Dec 9, 2013, at 5:41 PM, Alexis Tual wrote: >> >> Hi Ken, >> >> thanks for your suggestion, but I already have the backpointing >> relationship... >> I'll try to do a simple projet to isolate the issue. >> >> Alex >> >> >> >> 2013/12/6 Ken Anderson >> >>> In ancient times… (and I mean like, 15 years ago) >>> >>> A back pointing relationship from the subclasses of B to the abstract A >>> (where the to-many relationship ‘toB' is) was necessary for all the >>> plumbing to hook things up when the EOs came back from the prefetch. >>> >>> Ken >>> >>> On Dec 5, 2013, at 3:08 PM, Alexis Tual wrote: >>> >>> > Hi, >>> > >>> > I have 2 single table hierarchies : >>> > - B1 inherits from B >>> > - A1 inherits from A (abstract), A1 has a to-many relationship to B, >>> let's call it toBs >>> > >>> > is it possible to prefetch this relationship ? >>> > >>> > We can't manage to get it work, I'll past the obscure exception >>> tomorrow but can anyone confirm that this kind of prefetch works with EOF ? >>> > I've also tried ERXBatchFetchUtilities which seems promising "This >>> works much like prefetching with fetch specifications, however this >>> implementation is able to work around inheritance where prefetching fail", >>> but no luck :/ >>> > >>> > Thanks >>> > >>> > Alex >>> > >>> > ___ >>> > Do not post admin requests to the list. They will be ignored. >>> > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> > Help/Unsubscribe/Update your Subscription: >>> > >>> https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com >>> > >>> > This email sent to kenli...@anderhome.com >>> >>> >> >> > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inheritance and prefetching
Yes it's referencing A in my example. Do I have to reference all subentities of A ? I'll try tomorrow at the office. Thanks Alex 2013/12/9 Ken Anderson > Is the back pointing relationship referencing the superclass? You need to > create multiple relationships, specifically naming all the subclasses. > > On Dec 9, 2013, at 5:41 PM, Alexis Tual wrote: > > Hi Ken, > > thanks for your suggestion, but I already have the backpointing > relationship... > I'll try to do a simple projet to isolate the issue. > > Alex > > > > 2013/12/6 Ken Anderson > >> In ancient times… (and I mean like, 15 years ago) >> >> A back pointing relationship from the subclasses of B to the abstract A >> (where the to-many relationship ‘toB' is) was necessary for all the >> plumbing to hook things up when the EOs came back from the prefetch. >> >> Ken >> >> On Dec 5, 2013, at 3:08 PM, Alexis Tual wrote: >> >> > Hi, >> > >> > I have 2 single table hierarchies : >> > - B1 inherits from B >> > - A1 inherits from A (abstract), A1 has a to-many relationship to B, >> let's call it toBs >> > >> > is it possible to prefetch this relationship ? >> > >> > We can't manage to get it work, I'll past the obscure exception >> tomorrow but can anyone confirm that this kind of prefetch works with EOF ? >> > I've also tried ERXBatchFetchUtilities which seems promising "This >> works much like prefetching with fetch specifications, however this >> implementation is able to work around inheritance where prefetching fail", >> but no luck :/ >> > >> > Thanks >> > >> > Alex >> > >> > ___ >> > Do not post admin requests to the list. They will be ignored. >> > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> > Help/Unsubscribe/Update your Subscription: >> > >> https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com >> > >> > This email sent to kenli...@anderhome.com >> >> > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inheritance and prefetching
Is the back pointing relationship referencing the superclass? You need to create multiple relationships, specifically naming all the subclasses. On Dec 9, 2013, at 5:41 PM, Alexis Tual wrote: > Hi Ken, > > thanks for your suggestion, but I already have the backpointing > relationship... > I'll try to do a simple projet to isolate the issue. > > Alex > > > > 2013/12/6 Ken Anderson > In ancient times… (and I mean like, 15 years ago) > > A back pointing relationship from the subclasses of B to the abstract A > (where the to-many relationship ‘toB' is) was necessary for all the plumbing > to hook things up when the EOs came back from the prefetch. > > Ken > > On Dec 5, 2013, at 3:08 PM, Alexis Tual wrote: > > > Hi, > > > > I have 2 single table hierarchies : > > - B1 inherits from B > > - A1 inherits from A (abstract), A1 has a to-many relationship to B, let's > > call it toBs > > > > is it possible to prefetch this relationship ? > > > > We can't manage to get it work, I'll past the obscure exception tomorrow > > but can anyone confirm that this kind of prefetch works with EOF ? > > I've also tried ERXBatchFetchUtilities which seems promising "This works > > much like prefetching with fetch specifications, however this > > implementation is able to work around inheritance where prefetching fail", > > but no luck :/ > > > > Thanks > > > > Alex > > > > ___ > > Do not post admin requests to the list. They will be ignored. > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com > > > > This email sent to kenli...@anderhome.com > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inheritance and prefetching
Hi Ken, thanks for your suggestion, but I already have the backpointing relationship... I'll try to do a simple projet to isolate the issue. Alex 2013/12/6 Ken Anderson > In ancient times… (and I mean like, 15 years ago) > > A back pointing relationship from the subclasses of B to the abstract A > (where the to-many relationship ‘toB' is) was necessary for all the > plumbing to hook things up when the EOs came back from the prefetch. > > Ken > > On Dec 5, 2013, at 3:08 PM, Alexis Tual wrote: > > > Hi, > > > > I have 2 single table hierarchies : > > - B1 inherits from B > > - A1 inherits from A (abstract), A1 has a to-many relationship to B, > let's call it toBs > > > > is it possible to prefetch this relationship ? > > > > We can't manage to get it work, I'll past the obscure exception tomorrow > but can anyone confirm that this kind of prefetch works with EOF ? > > I've also tried ERXBatchFetchUtilities which seems promising "This works > much like prefetching with fetch specifications, however this > implementation is able to work around inheritance where prefetching fail", > but no luck :/ > > > > Thanks > > > > Alex > > > > ___ > > Do not post admin requests to the list. They will be ignored. > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > > Help/Unsubscribe/Update your Subscription: > > > https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com > > > > This email sent to kenli...@anderhome.com > > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inheritance and prefetching
In ancient times… (and I mean like, 15 years ago) A back pointing relationship from the subclasses of B to the abstract A (where the to-many relationship ‘toB' is) was necessary for all the plumbing to hook things up when the EOs came back from the prefetch. Ken On Dec 5, 2013, at 3:08 PM, Alexis Tual wrote: > Hi, > > I have 2 single table hierarchies : > - B1 inherits from B > - A1 inherits from A (abstract), A1 has a to-many relationship to B, let's > call it toBs > > is it possible to prefetch this relationship ? > > We can't manage to get it work, I'll past the obscure exception tomorrow but > can anyone confirm that this kind of prefetch works with EOF ? > I've also tried ERXBatchFetchUtilities which seems promising "This works much > like prefetching with fetch specifications, however this implementation is > able to work around inheritance where prefetching fail", but no luck :/ > > Thanks > > Alex > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com > > This email sent to kenli...@anderhome.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Inheritance and prefetching
On 2013-12-05 12:08 PM, "Alexis Tual" wrote: Hi, I have 2 single table hierarchies : - B1 inherits from B - A1 inherits from A (abstract), A1 has a to-many relationship to B, let's call it toBs is it possible to prefetch this relationship ? We can't manage to get it work, I'll paste the obscure exception tomorrow but can anyone confirm that this kind of prefetch works with EOF ? I am not sure, I will take a look at the trace. I've also tried ERXBatchFetchUtilities which seems promising "This works much like prefetching with fetch specifications, however this implementation is able to work around inheritance where prefetching fail", but no luck :/ How did that fail? Chuck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Inheritance and prefetching
Hi, I have 2 single table hierarchies : - B1 inherits from B - A1 inherits from A (abstract), A1 has a to-many relationship to B, let's call it toBs is it possible to prefetch this relationship ? We can't manage to get it work, I'll past the obscure exception tomorrow but can anyone confirm that this kind of prefetch works with EOF ? I've also tried ERXBatchFetchUtilities which seems promising "This works much like prefetching with fetch specifications, however this implementation is able to work around inheritance where prefetching fail", but no luck :/ Thanks Alex ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com