IPhone - cache name for NSFetchedResultsController

G'day folks

In a CoreData-based application, there are several kinds of data from the same repository, all with the NSFetchedResultsController. Currently, they all have the same name for the NSFetchedResultsController cache, "Root". Users of my application can and probably will jump indiscriminately between views. Would it be better for users if I gave the cache for each NSFetchedResultsController a unique name?

TIA, Pedro :)

+7
caching iphone core-data
source share
1 answer

Providing a different cache name for different sets is desirable and will improve performance.

From Apple documentation at http://developer.apple.com/library/ios/documentation/CoreData/Reference/NSFetchedResultsController_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40008227-CH1-SW24

If you have several controllers with different configurations (different types of descriptors, etc.), you must give each other cache name.

Cheers, Horn

+13
source share

All Articles