• 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
setRelationshipKeyPathsForPrefetching:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setRelationshipKeyPathsForPrefetching:


  • Subject: setRelationshipKeyPathsForPrefetching:
  • From: Keith Wilson <email@hidden>
  • Date: Wed, 31 Oct 2007 13:59:26 +1100


Wow - if this does what I think it says it does then I am a very happy developer.


In my datamodel I have an Entity (A) for which I also have subtypes called A1 and A2.

I have another Entity B that has to-many relationships with A1 and also with A2.

When I created the SQLite database (under Tiger) it did not automtically create indexes on A1 and A2 for the to-many relationships so it was slow doing a fetch on the to-many relationship. This was very noticeable when doing lots of fetches on a large database.

So can I use setRelationshipKeyPathsForPrefetching: to get around the above problem?

Is there some other way solving the problem of to-many relationships to an Entity subtype?

Keith
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: [Solved] Re: Checking to see if a server volume is already mounted?
  • Next by Date: Re: [Solved] Re: Checking to see if a server volume is already mounted?
  • Previous by thread: Re: Creating Matrices in IB
  • Next by thread: Concrete Protocols
  • Index(es):
    • Date
    • Thread