Things to Consider When Using the Bulk Change APIs

Just because we have these APIs available to us does not mean that we should be using them without serious consideration. Several factors impact our decision to use these APIs.

How Fast Is “Faster”?

Doing massive changes to the underlying persistent store will never be instantaneous. No matter what type of database we’re working with, this is going to take time. However, compared to the way that we’d “normally” do this type of work with Core Data, these APIs are significantly faster.

Testing against massive persistent stores have shown at least an order of magnitude speed improvement over the traditional way of doing bulk changes. If an operation took 9 seconds previously via loading objects ...

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.