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 7987069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:02:26+00:00 2026-06-04T12:02:26+00:00

I am looking for either a sample app or a more architectural discussion to

  • 0

I am looking for either a sample app or a more architectural discussion to build an app, which maintains a local persistent store (CoreData) and keeps it sync against a Web-Service like Flickr. In my case it is Salesforce, but the pattern should be similar to many apps for Flickr, Twitter, IMAP and so on.

Sample questions:
where are the best points to invoke the syncing?
what are proven datastructures to maintain local changes
– maintain a “changed” BOOL in the local store for every unsynched change; I would prefer a field level flag against a record level flag)?

Of course I have to optimize this on my own, knowing the amount of records (100’s) and changes (10’s per day) and the probability of conflicts (low in my case on a field level).

  • 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-04T12:02:27+00:00Added an answer on June 4, 2026 at 12:02 pm

    Here’s how I would approach this:

    1. Start by modeling a local CoreData/Sqlite database that mirrors your online database.
    2. Add an NSDate lastModified property to every row of each table. This will allow me to track changes at the record level, instead of field level. This helps reduce sync complexity, and in most real world scenarios, record level syncing is sufficient.
    3. Perform an automatic sync when the app starts, and also provide a prominent “Sync” button in your navigation bar. This way the user always has an updated dataset when the app launches after a long period, and can sync the latest changes over the course of a day. I would avoid doing background sync while the app is being used. This will make your app more complex and error-prone when you’re trying to tackle other things. So postpone working on background/automatic sync until you have the rest working.
    4. Once I have my sync working reasonably well at launch and on-demand, I would try and support background sync. I would also try and eliminate the “Sync” button, so the user never has to think about syncing – (it’s always up to date as far as the user is concerned). But this would be a longer term enhancement, which i would attempt only after I have “on-demand” syncing working rock solid.

    Hope this helps you get started. I would love to hear if you think differently about any of this.

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

Sidebar

Related Questions

I am looking for a command line either for an algorithm (script) which allows
I am looking to keep track of people in my iPhone app - either
In asking this question, I'm looking for either better understanding of the situation or
Looking to implement a RIA (rich internet application) either as a java (JWS) application
I am looking for an effective way to either clone/rename or re-create address fields
I am looking for some code (either PHP or JavaScript) would work well to
I am looking for an stfp filebrowser, in either php, flash og as an
What do you call this arrow looking -> operator found in PHP? It's either
I’m looking for some samples/tutorials/general pointers in doing either of the following. 1) Create
I am developing a blackberry app through HTML5 Webworks and am looking for a

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.