-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign stack context structure #60
Comments
I was actually quite surprised to find out that most of popular CoreData libraries use parent-child stack. On data set of hundreds it may add ~30% to fetch time(I got ~0.6s and by using main queue MOC directly connected to PSC I got 0.4s on iPhone 5). |
Definitely. After talking with Daniel, I learned that child contexts are really misunderstood and misused. The best scenario is to use them as a scratch pad where you may want to completely throw out the objects. |
After talking with Daniel Eggert, I found that nesting parent/child contexts is non-optimal.
Move from the existing stack architecture, to the following:
mainContext
as a child context of thebackgroundContext
backgroundContext
andmainContext
to the coordinatorOriginal design: 28b9e4e (what we want to go back to)
Refactor to parent-child: f0aa87c
Basically need to revert stack changes in f0aa87c to go back to 28b9e4e
The text was updated successfully, but these errors were encountered: