• 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: coredata batch fault/prefetch relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coredata batch fault/prefetch relationships


  • Subject: Re: coredata batch fault/prefetch relationships
  • From: Scott Ellsworth <email@hidden>
  • Date: Tue, 24 Jan 2006 11:04:21 -0800


On Jan 24, 2006, at 8:12 AM, Aurélien Hugelé wrote:

Core Data does not support relationships batch faulting :

too bad :(

However, if you write a fetch request that retrieves the objects that such a batch fault would have retrieved, you can get the same effect. About the only negative: you need to keep the result array around until the relationship faults are fired. Essentially, such a fetch request turns it from a bunch of individual relationship fetches to a hashed lookup in memory.


I keep meaning to try this on my current code, then to wrap a method around it, but I have not gotten to that yet.

Scott

On 24 janv. 06, at 15:21, Jesse Grosjean wrote:

But that still leaves all the relationships in the fault state, and firing the faults on the parent and children relationships is a big performance problem. If I add the following two lines to the above code my application will run fast after the two lines have executed, but executing these two lines takes a very long since I've just manually firing the relationship faults.

Are you keeping the result array around from that first fetch until after you fire all the faults? My understanding is that this should be pretty snappy.


Also, how many such objects are you pulling back?

Scott _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >coredata batch fault/prefetch relationships (From: Jesse Grosjean <email@hidden>)
 >Re: coredata batch fault/prefetch relationships (From: Aurélien Hugelé <email@hidden>)

  • Prev by Date: Re: NSMenuItem Target Action problem
  • Next by Date: Re: NSMenuItem Target Action problem
  • Previous by thread: Re: coredata batch fault/prefetch relationships
  • Next by thread: Strange NSTreeController crash
  • Index(es):
    • Date
    • Thread