• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Prefetching across models/databases
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prefetching across models/databases


  • Subject: Re: Prefetching across models/databases
  • From: Travis Britt <email@hidden>
  • Date: Tue, 11 Sep 2007 13:58:10 -0400


On Sep 11, 2007, at 1:33 PM, Chuck Hill wrote:
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.

I took a quick look at the Wonder code and the calls it makes into EOF. I don't see why the relationship should be empty. That may well be a bug in EOF. Please let us know what you turn up.

I wired up a simple subclass of EODatabaseContext so I could see what was happening in EODatabaseContext.batchFetchRelationship(). When that gets called by ERXRecursiveBatchFetching EOF thinks the fault has already been fired, and is empty.


I'm currently racing a deadline, but will set up a simple test case this weekend. Need to rule out weirdness in my model, which is somewhat, umm, "organic" and sitting atop some byzantine legacy databases.

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


References: 
 >Prefetching across models/databases (From: Travis Britt <email@hidden>)
 >Re: Prefetching across models/databases (From: Chuck Hill <email@hidden>)
 >Re: Prefetching across models/databases (From: Travis Britt <email@hidden>)
 >Re: Prefetching across models/databases (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Prefetching across models/databases
  • Next by Date: Error: Unabled to find an EOClassDescription for objects of class Agent
  • Previous by thread: Re: Prefetching across models/databases
  • Next by thread: Client data binding
  • Index(es):
    • Date
    • Thread