One argument for using Core Data, is that it manages the loading of objects into memory very efficiently. In this video we discuss the mechanism through which Core Data does this: Faults. Issues can arise from not understanding what Faults are, and how objects aren't immediately loaded completely into memory. Gain the basis of that understanding.
- So we talked about queues and threads.…One of the other big caveats that you've got to learn…when working with Core Data is faults,…and to visualize faults,…when we think of faults, we think of a bad thing,…but it's actually Core Data's way of managing your data,…and keeping a small memory footprint.…Think of your entity as a whole pizza.…It contains everything that you want in that entity,…the attributes, any pointers to other objects,…relationships, lists, those type of things.…
What Core Data does is it actually cuts it up,…and cuts it up even more.…And ultimately,…there are boundaries at which it cuts things.…These boundaries can happen…on relationships to entities and to properties.…Let's go ahead and look at what this actually looks like…within an application.…Here we have that WhoseFaultIsIt app…that we've looked at before.…We have the person and the car entities in here,…and I'm going to just collapse a bunch of this,…so that we don't have to worry about different things.…
Really, this is the bulk of what's going to happen,…
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