objective-ccocoacore-datamemory-managementmemory-warning

Core Data Faults and Memory Warnings


Does NSManagedObject observe memory warnings and turns into a fault? Am I supposed to do this sort of stuff in tight memory situations?

Is there any guidelines on preserving memory with Core Data?


Solution

  • Core Data is designed to give you good tools to be memory friendly but much of it is not automatic. You still need to do some work.

    General guidelines are a bit tough as different situations might require some very different optimizations. That said, a few notes:

    Those are just a few - the 'Core Data Programming Guide' has some others and I'd say it's required reading. Overall though, just like anything else, you should do the least amount of work and then measure your usage. See how things are going and then look at optimizing the parts that need optimizing.

    Have fun!