I have a managed object context in a separate thread that is creating a few hundred managed objects, and when it saves, the did save notification is passed to the main thread and my other context (on the main thread) is updated:
In Thread
[ApplicationDelegate performSelectorOnMainThread:@selector(managedObjectContextDidSave:)
withObject:notification
waitUntilDone:NO];
The problem is that the merging is taking a very long time, sometimes 40-50 seconds, and this is locking up the main thread & UI. Is there any reason why it would take this long to update?
Edit
This appears to only happen if there is a fetched results controller that is currently displaying data that will be affected by the merging. Any ideas?