Re: Prefetching across models/databases
Re: Prefetching across models/databases
- Subject: Re: Prefetching across models/databases
- From: Travis Britt <email@hidden>
- Date: Mon, 10 Sep 2007 16:46:54 -0400
On Sep 10, 2007, at 1:01 PM, Chuck Hill wrote:
SQL is not generated to fetch the destination EOs from the second
database, nor are they faulted in when I try to access them after
the fetch. (I assume b/c EOF thinks they weren't in the database
-- if I remove the prefetch on that relationship, they get faulted
in as you'd expect.)
That sounds like an odd result.
Agreed.
An easy way to do this is to use ERXRecursiveBatchFetching:
Hmm, this doesn't work either. If I use it to fetch the relationship
when the destination is in another database, the to-many relationship
is always empty. When I don't call ERXRecursiveBatchFetching (and
don't do any pre-fetching of that relationship) the relationship
shows the correct number of records.
But I shall keep digging.
tb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden