setRelationshipKeyPathsForPrefetching:
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