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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:19:01+00:00 2026-05-22T01:19:01+00:00

I am creating two mobile apps, on iPhone and on Android. As I’m updating

  • 0

I am creating two mobile apps, on iPhone and on Android.
As I’m updating data on the server, the mobile apps frequently update their databases and so the sync is kept between the remote and local databases.

But what happens if a user say delete a comment ? The row in my local database (mobile) is just not going to get updated anymore.

I was thinking of maybe adding a delete boolean column to all my entities so that I could just update the row with deleted:true instead of actually deleting it, but user wise I could see how that would be a problem.

What is the best way to fix this problem ?
Thanks !

EDIT : A bit more information on how it works now :

My webservice acts as a JSON API.
So when I say /items.json it gives me an array of the top 20 items of all time sorted by popularity, I can then paginate (/items.json?page=2) to get more data, or add a category (/items.json?page3&cat=bla)

So the way it is setup now I basically call the /items.json if my local DB is empty, or if it has been a long time since you opened the app. And I make (for the Android app for now) an : INSERT OR REPLACE INTO, so that the rows are either added or updated with the right information.

  • 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-05-22T01:19:01+00:00Added an answer on May 22, 2026 at 1:19 am

    How exactly do you keep the tables in sync? Is there no way to also transmit the information that row X has been deleted and should also be deleted in the mobile apps?

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

Sidebar

Related Questions

I'm creating a log shipping configuration between two sql server 2005 instances. I'm shipping
I'm creating a mobile game that that has two parts. The first is slow,
Hi I am creating two lists to hold good and bad data values. I
I am creating a service which receives some data from mobile phones and saves
This is my first stab at creating two targets within one project for iPhone
hi i am new to iphone what i did is i am creating two
Creating hashes of hashes in Ruby allows for convenient two (or more) dimensional lookups.
I am creating a registration form which contains two submit buttons. I need to
I need UNION two tables with creating new field, where 1 for first table,
I am creating an application in which I have two mxml components, MainPanel.mxml and

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.