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
Store a revision number on the device and in your remote DB.
Then do something along these lines:
GET http://myapp.com/get_json_update?rev=41revis the revision number of the DB on the client.local rev == remote revreturn an empty JSON object.local rev > remote rev, do adiff, JSONify the objects that have been added since the last rev, return to client.local rev < remote rev, something went terribly, terribly wrong.