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

Doing Bulk Updates

Doing a bulk update isn’t a common event in most application life cycles. Selecting a large number of emails, or a large number of news items, and marking them as read is a common example of doing a bulk update. While you’ll run into these situations, they’re unusual and shouldn’t be considered a core function of the application. Bulk updates are generally used to get us out of a coding or design “corner.”

In our recipes application, we’re going to use the bulk update API to change the values of some of our recipes on the first launch after a migration. When we migrate the application to the fourth version, we’ll add a Boolean to indicate whether it’s a favorite recipe; the default for that recipe is false. Once the migration ...

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