In defense of Core Data
summary
Argues Core Data is practical today and demonstrates concrete fixes: use NSPersistentContainer for a few lines of setup, drive UI updates with NSFetchedResultsController, and avoid thread bugs with background contexts and automatic merges. Shows a conference sample app where naive traversal causes many cache misses (dozens of SQL hits) and prefetching collapses that to four queries. Covers instruments and Core Data debug flags for profiling, shows lightweight migrations work for simple model changes, and the example app functions as claimed.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 1:09Agenda
- 2:08Core Data
- 5:46Fetch Results Controller
- 12:21MultiContext Setup
- 15:00Background Context
- 16:36Performance
- 17:26Fetch Request Optimization
- 18:55Prefetch








