Skip to content

Instantly share code, notes, and snippets.

@quellish
Created August 23, 2012 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quellish/3433715 to your computer and use it in GitHub Desktop.
Save quellish/3433715 to your computer and use it in GitHub Desktop.
Prefetch all relationships on managed object
NSDictionary *relationshipMap = [[fetchRequest entity] relationshipsByName];
NSArray *relationshipKeyPaths = [relationshipMap allKeys];
[fetchRequest setRelationshipKeyPathsForPrefetching:relationshipKeyPaths];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment