This is a migrated thread and some comments may be shown as answers.

Best approach for mobile architecture with remote and local data

1 Answer 73 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
fenix2222
Top achievements
Rank 2
fenix2222 asked on 25 Feb 2013, 05:35 AM
Hi we are planning to create iPhone and iPad apps using Icenium. We will have a backend remote database exposed via OData services. I know kendo UI works quite well with odata sources. From what I have read Icenium provides WebSQL and Sqlite plugins. Are there any cons of using sqllite compared to websql? Also, I have never designed mobile app before, but I understand that I would need to cache some data locally? What is the best approach for it? I envisage it like this:

- When app first loads it downloads all the data from remote DB and stores it in local DB
- When app performs any CRUD operations, it pushes data to remote DB and stores it locally as well.
- When app starts next time, it passes last updated date (probably date it was run last) to the remote DB, and remote DB passes back only data that has been changed since
the date passed.

Is this right way of doing it? My biggest concern is that database can still go out of sync, and also I am not sure how good Sqlite performance is on mobile device.  Also should I still have some background thread that sync data constantly every so often?

1 Answer, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 26 Feb 2013, 02:51 PM
Hi Igor,

There are a couple of benefits of using the SQLite plugin - the main one is the 5MB limitation of the WebSQL. You can read more about its features here.

Regarding the local caching you can check this blog post that contains some highlights how this can be achieved. You can even implement a Kendo DataSource that uses WebSQL for local data persistence - here is a demo with full CRUD example.

Hope this helps,
Stefan Dobrev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
Tags
General Discussion
Asked by
fenix2222
Top achievements
Rank 2
Answers by
Stefan Dobrev
Telerik team
Share this question
or