NSManagedObjectContext's propagatesDeletesAtEndOfEvent set to false causes error on save
问题 I have a pair of Core Data Entities of One-to-Many relationship. Department <-(optional) (delete rule: Cascade) (optional)->> Item Item <-(optional) (delete rule: Nullify) (optional)->> Department Item is a tree node-like entity, which also has a relationship to itself. The tree can grow quite large (more than 10 thousands nodes in a root branch). There are a parent background NSManagedObjectContext and a main-queue one as the child. In the hope of making deletion of Items feel faster, I set