I have a CoreData based app that is populated using a web service. When a user changes data on an object in my web service I want to push that change back to my web service.
What is a best practice to accomplish this? I could possibly have a lot of changes objects that need to get sent but the user might not have a connection and I want it to happen in the background.
Do I flag the object in CoreData and needing to be saved remotely? And then batch them every few minutes if possible? I have used Flurry and Google Analytics and they must be doing something like this but I am not sure what the best approach to take is.
Maybe a separate table in Core Data that holds the EntityName and ObjectID that needs updating?