Core Data and Magical Records
Core Data and Magical Records
Records
Components
Object Graph Management
Persistance
Persistant Store Coordinator (PSC)
When these components are tied together..
The Stack
Concurrency
Core Data isn't thread safe or is it?
NSManagedObject
Do not pass the instance from one thread to another
Use objectID
NSManagedObjectContext
Context belongs to the thread it was created on
(NSConfinementConcurrencyType)
NSMainQueueConcurrencyType
performBlock: and performBlockAndWait: are
executed in the main thread
MagicalRecords
https://github.
com/magicalpanda/MagicalRecord
Reference
Apple Docs
Core Data Overview - objc.io
Multi Context Core Data - Cocoanetics
My Core Data Stack - Marcus Zarra
Core Data from scratch - Concurrenncy
Core Data Concurrency - CodeCentric
Common Background Practices - Objc.io
NSManagedObjectContext - Docs