Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setRelationshipKeyPathsForPrefetching:




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.