-
-
Notifications
You must be signed in to change notification settings - Fork 69
Batchsize and child context bug? #57
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I was experimenting that yesterday as I tweeted, but I'm not sure how to proceed. There are several posts disappointing about to user parent context as CoreData "mantra", but really there looks very useful and easy to implement on apps, so I want to find a way to use it correctly. On the one hand, it's possible (I did it in my local and it runs well) to remove parental relationship in: The problem is that after do that, it's needed to sync both context using old-NSNotificationCenter way, and I spend some time trying to do it yesterday night but I didn't finish. Do you think that this is the way or suggest another? UPDATE: there are a god sample of the bug with Core Data --> https://github.com/jleandroperez/FRCDeadlock |
Thanks so much for the investigation @patoroco ! 😄 I'll look into this more soon. |
The link you're referring to doesn't describe a bug but a limitation regarding Core Data and concurrency. I'm not sure if your link has anything to do with what @jessesquires describes. There's one very important thing you have to keep in mind:
In other words, managed object contexts need to lock their psc for certain operations. A general rule of thumb: never make a synchronous call to the main queue inside a |
Thanks @wiedem ! 👍 🎉 😄 I agree, it's easy to setup trivial situations that will cause a deadlock. From @patoroco's original comment:
Given this and the completion of #60, I'm going to close this as resolved. If anyone disagrees, let me know! |
http://stackoverflow.com/questions/11365589/batch-size-does-not-work-when-using-parent-child-contexts
The text was updated successfully, but these errors were encountered: