0

I'm working with an extremely large data set with Core Data. Currently I have my main managedObjectContext and in the background I populate data from a network source on a child managedObjectContext with it's parent context set to my main.

The problem I'm running into is as I save on the background context and then save on my main context the UI is slow and it seems to be because it's having to load all my NSManageObject objects into memory in order to calculate the sectionIndexTitlesForTableView.

Is there a way that I can correctly count the sectionIndexTitles but only load a few NSManagedObjects into memory?

Any help or suggestions would be greatly appreciated.

4

0 回答 0