Chapter 9
Core Data Migration and Performance
WHAT’S IN THIS CHAPTER?
- Managing database schema changes with versioning and migration
- Implementing a threaded Core Data application
- Understanding and optimizing Core Data performance and memory usage
- Analyzing Core Data performance with the Instruments tool
WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
The wrox.com code downloads for this chapter are found at www.wrox.com/remtitle.cgi?isbn=1118391845 on the Download Code tab. The code is in the Chapter 9 download and individually named according to the names throughout the chapter.
In the preceding chapters, you learned about the Core Data framework and how to use it to provide the data storage capability in your applications. In this chapter, you take a closer look at some advanced topics related to Core Data, including migrating from one database schema to another and optimizing the performance of your Core Data–based application.
In this chapter, you learn how to handle change in your application data model using model versioning and migration. You also learn how to effectively manage memory when building a Core Data–based solution, safely implement a threaded Core Data application, and troubleshoot and analyze your Core Data application using the Instruments tool.
MODEL VERSIONING AND SCHEMA MIGRATION
It is rare that a finished application turns out the way you imagined when you started. In fact, many applications are never truly finished. If your customers like your application, ...
Get Professional iOS Database Application Programming, 2nd 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.