I'm getting some data from the web service and saving it in the core data. This workflow looks like this:
- get xml feed
- go over every item in that feed, create a new ManagedObject for every feed item
- download some big binary data for every item and save it into ManagedObject
- call [managedObjectContext save:]
Now, the problem is of course the performance - everything runs on the main thread. I'd like to re-factor as much as possible to another thread, but I'm not sure where I should start. Is it OK to put everything (1-4) to the separate thread?