You will become familiar with the steps required to move to the persistent container and Core Data 2016. You will understand how this affects your System of Record process. You will gain a summary of all the benefits of the Persistent Container when compared with each of the architectural models.
- [Instructor] You've come to the point where you want to migrate to the new core data way of doing things. So, how do we do this? First, we have to target one of these operating systems. Sierra or iOS 10 or any of these other versions. There's a few things you have to do and some things you probably should do. First, you have to implement a Persistent Container, move all the contexts over to that container's contexts and change all the coordinators to use a single coordinator from the Persistent Container.
And then you might want to automerge in your viewContext. Now, things that you should do is move all of your writes to background contexts, pin the viewContext where you find it necessary, and then use the latest Core Data syntax. Of course, you should remove all iCloud integration. It's deprecated as of this version of Core Data and then you might want to use some autogenerated classes. When you look at the "should" list, the things that you have to do decrease in value as you move down towards the bottom.
When you're trying to determine what changes with a system of record, your local database will improve in performance and the model should become simpler, but with the server side, there won't be any change. All of these recommendations are, of course, based off of using the SQLite version of Core Data, and let's go ahead and look at an overall view of the benefits and negatives. Depending on where you're coming from, there's always going to be a ton of positives. In fact, the only negatives here are because of limitations in working with SQLite and having Disk I/O.
This course is meant for the enterprise developer who wants to get up to speed with the latest methods with Core Data. Instructor Jon Bott starts with a review of the basics, explaining the different architectural data models currently in use, the issues that can arise from these different models, and how the latest changes in Core Data 2016 simplify these models. He wraps up with hands-on migration to the new APIs and further tips on leveraging them in iOS 10 and macOS 10.12 apps.
- Fetching data
- Working with objects, queues, and threads
- Understanding the architectural models
- Managing local and server-side data
- Understanding iOS 10 and macOS 10.12 updates to Core Data
- Migrating to the new core data