Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advanced concurrency in Core Data

Tags:

ios

core-data

Where can I find concrete examples of advanced CoreData concurrency? By advanced I mean operations on contexts and NSManagedObjects that run simultaneously on two or more threads and every thread can both read and change objects. Each objects saves contexts and listen for changes in another threads, everyone merges changes properly, nothing crashes, there are no inconsistency exceptions, everything is done as it should be.

I read official Apple document about Core Data concurrency, now I'm looking for code examples, tutorials, books, or at least some more detailed information on how to handle this type of scenario.

like image 905
Łukasz Sromek Avatar asked Oct 08 '22 03:10

Łukasz Sromek


1 Answers

there is a really nice blog post from cocoanetics:

Multi Context Core Data

and i have created a github repo for the Async Saving Example: Multi Context Core Data GitHub

like image 54
CarlJ Avatar answered Oct 09 '22 17:10

CarlJ