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

  • Home
  • SEARCH
  • 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 6755931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:27:44+00:00 2026-05-26T13:27:44+00:00

I am Creating an app which will store data of songs in database, i

  • 0

I am Creating an app which will store data of songs in database,

i wil be fetching them with JSON from server

but calling JSON remotely is making my app slower so

i thought to use sqllite but songs will get upadated dailly

i will have to fetch them too

but storing all tracks in sql lite will be also not the ideal option so

can you please suggest me best way to sort out this issue

  • 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-26T13:27:44+00:00Added an answer on May 26, 2026 at 1:27 pm

    Store a revision number on the device and in your remote DB.

    Then do something along these lines:

    • On app launch, poll your DB server: GET http://myapp.com/get_json_update?rev=41
      • where rev is the revision number of the DB on the client.
    • On the server:
      • Compare the rev # with the one sent by the client.
      • If local rev == remote rev return an empty JSON object.
      • If local rev > remote rev, do a diff, JSONify the objects that have been added since the last rev, return to client.
      • If local rev < remote rev, something went terribly, terribly wrong.
    • On the client
      • Push the new objects into your DB.
      • Update the DB rev #.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an app which will have a question in a UILabel and
I am creating a web app which uses jQuery to authenticate: $.ajax({ url: /session/create?format=json,
I'm creating and app that will rely on a database, and I have all
I am creating an application which will store a (semi) real-time feed of a
I'm creating a mobile website that will include a page from which people can
I am creating an app which will be used to upload images to a
I'm creating a Windows service which will depend on the SQL Server service having
I'm creating a little web app to play videos. Data about the videos will
I am creating a rails app which will help out businesses. These businesses have
I am creating a system tray app which monitors mouse clicks in Windows. I

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.