In the book’s multi-threading example, it’s creating an NSManagedObjectContext in the main method of the NSOperation. If I have a number of NSOperations running one after the other, will there be a large overhead creating the context with each task?
With the NSOperationQueue having a max concurrent operation count of 1, many of my operations will be using the same thread. Can I use the thread dictionary to create one NSManagedObjectContext per thread? If I do so, will I have problems cleaning up my contexts later?
What’s the correct way to use Core Data in this instance?