Core Data for Fun and Profit
summary
Core Data is framed as an object‑graph manager not an SQL wrapper: model data to match the UI, subclass NSManagedObject for behavior, and use mutable ordered set for to‑many relationships so changes map to the store. Faulting and contexts drive performance: use one context per queue, call performBlock on background contexts, prefetch relationships, use fetch limits/counts and sorting in SQL. For large imports either ship a prebuilt SQLite or batch in 50–100 inserts with intermittent saves; avoid incremental store.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:57What is Core Data
- 3:24Core Data stack overview
- 5:15Managed objects explained
- 7:47Subclassing managed objects
- 14:51Faults and lazy loading
- 16:24Creating managed objects
- 17:28Entity vs class hierarchy
- 18:37Managed object contexts
- 23:36Fetch requests and performance
- 26:47Predicates and queries
- 28:56Top 3 performance issues
- 31:06Debugging Core Data
- 31:49Q&A session
