Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8535759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:30:29+00:00 2026-06-11T10:30:29+00:00

I have one app in which data sync part is involved, Currently I am

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:30:30+00:00Added an answer on June 11, 2026 at 10:30 am

    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.

    I have Status Column in the table.  
    
     Status = 0 means task is sync on both side.
     Status = 1 means newly added task
     Status = 3 means user deleted the task which was on server.
    
       a)when user add any task I insert that task with Status = 1.
        When I sync the task I extract all the task with status = 1.
       Put the task in ADD tag.
    
       b)On server side task is added in the database and it again send back to app with unique primary id. (needed when user edit any task.) I insert that task to my table with status = 0.
    
       c)Now when user edit any task I first check the status of task, if its Status = 1,I keep the status as 1. but status is 0 i changed that status = 2.
    
       d)If user delete any task I check the status if its status = 1 I delete that task, if its 0 or 2 I changes its status to 3.
    
      Now when Sync Method is Called, I search through Table 
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one app in which i called the webservice and set the data
I have an app which uses core data, the database structure was designed through
I have make one app in which i am display data in custom gridview
I have one desktop application which was implemented in C#. This app uploads file
Iam making an app which has one index.php file. I also have these other
In my Rails app, I have a model Page which represents one HTML article
I currently have one iPad app, but it now needs to become two. The
we have WinForms app which stores data in SQL Server (2000, we are working
I have an iPhone/iPad app which uses Core Data. In my DB I have
I have one C code app. which i was building using MS-VS2005. I had

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.