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
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today