Chapter 7Bulk Changes

Over the years that Core Data has been in production, there have been a few complaints about the framework that struck home and were accurate. Easily the most well-known complaint was regarding the ability to change a value in a large number of objects without requiring those objects to all be loaded into memory and then persisted back out to disk. The second most well-known complaint was about deleting a large number of objects. Again, the desire is to delete a large number of objects without having to load them into memory and then write back out to the persistent store again.

Both of these complaints only apply to the NSSQLite store. Since atomic stores such as the binary store require all of the data to be in memory, ...

Get Core Data in Objective-C, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.