I have one app in which data sync part is involved,
Currently I am doing by sending data in the form of XML through NSMutableURLRequest and receving through initWithContentsOfURL.
But as the amount of data getting huge,time to sync is also increasing.
If anyone have idea how to implement this in better way,or any changes made to above implementation. So that sync time is reduced.
I wanted to know the best approach/model to follow for doing Syncing.
Currently I am Following This method..
<ROOT>
<ADD></ADD>
<UPDATE></UPDATE>
<DELETE></DELETE>
</ROOT>
I am not asking about how make connection..
In my app user can add,update & delete from iphone as well as from server means website.
I want to know how to sync the data in proper way (Proper Structure of Data in Xml). so data user can see there entry on the both side.
Thanks in advance…
As I have not got the right answer what i was expecting. I think I was not able to put my question Properly.
Let me specify my Current Implementation.
1)User Enter some Data (Here means Task of Daily Schedule) from the app.
2)Same funcnality is provided from website.
3)When User Enter any Task from App he can see same task on Portal (I do background Syncing).
4)User Can Add,Edit,Delete Task From both Side.
5)In the Following Way I handled the Add,Edit & Delete Task.
Put All the Task in Add tag which has status = 1.
Put All the Task in Edit tag which has status = 2.
Put All the Task in Delete tag which has status = 3.
Now on server side This Xml is parse and its inserted, updated , Deleted according to tag.
The same method which I have mentioned above is followed on server side, and Add
Edit Delete xml is created.
I parser the task on app side do the insertion, updation and Deletion according to xml.
So My question was How do I improve this type of Sync Model.
Any one Knows better syncing Model in which from both side (Website & App) user can add,edit,delete.