Skip to content
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

add guidelines when to use mainQueueManagedObjectContext vs persistentStoreManagedObjectContext vs newChildManagedObjectContextWithConcurrencyType #1

Open
rodrigo-lima opened this issue Mar 9, 2013 · 6 comments

Comments

@rodrigo-lima
Copy link

@blakewatters if you could add examples / guidelines (or in RKGist tutorial) some general rules on when to use mainQueueManagedObjectContext vs persistentStoreManagedObjectContext vs newChildManagedObjectContextWithConcurrencyType.

We have an use case where a background is loading a huge list (in chunks of 100 objects at a time), but the UI wants to render that list and also makes references to some other objects already in CoreData... when all that happens, I see deadlocks and I'm still not sure exactly what's going on.

@tplessis
Copy link

+1! I'm a bit confused with those managed object context.... :/

@blakewatters
Copy link
Member

Will do. I am going to get 0.20.0 out the door this week and then finish out this tutorial.

@rcfrias
Copy link

rcfrias commented Apr 12, 2013

Im having same confusion, I just experienced a bug where the mainQueueManageObjectContext was not saving a "Relationship" in CoreData, but the persistentStoreManagedObjectContext was. Both contexts were saving the ManagedObjects, the only difference was the "Reletions"

@thomers
Copy link

thomers commented Jun 13, 2017

Old, but +1!

@Donnit
Copy link

Donnit commented Jun 13, 2017

Really old, but +1!

This seems to be very important for orphans deletion! Seems that RKManagedObjectRequestOperation has to deal with different context, because using mainQueueManageObjectContext local objects are the same (only filtered by fetch requests) of mapping results. This means always no orphans. And this is unreal when local db is empty!

@thomers
Copy link

thomers commented Nov 28, 2019

Here's my +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants