O'Reilly logo

Core Data in Swift by Marcus S. Zarra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Things to Consider When Using the Bulk Change APIs

Just because we have these APIs available to us doesn’t 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 nine seconds previously via loading objects ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required