0

I'm developing an android app using Cordova in which i have over 3000 long texts (each fits in about 5 pages in Microsoft Word). I want to know which storing system is the best for storing such huge data.

Sqlite,HTML 5 local storage, or Android local data store APIs, or something else maybe?

EDIT

Considering W3Schools and this question HTML 5 local storage is out, due to its limitations. I'm looking for a storage system which at least be able to store 500 MB.

Community
  • 1
  • 1
Ghasem
  • 14,455
  • 21
  • 138
  • 171

2 Answers2

1

Factors to consider with respect to Local Storage.
Local Storage size limit:
Web storage provides far greater storage capacity (5 MB per origin in Google Chrome,Mozilla Firefox,and Opera; 10 MB per storage area in Internet Explorer;25MB per origin on BlackBerry 10 devices) compared to 4 kB (around 1000 times less space) available to cookies. ( source Wiki)
Local Storage Method.
Web Storage:
Web SQL Database:
Indexed Database:
source: html5rocks, sitepoint

All MOBILE broswers have varying degree of support for above local storage method.
The most widely supported method is Web Storage.
If you would like to store more than the limits mentioned above than you need to use the native (OS) features for storing data. Then PhoneGap is the obvious choice for accessing native features.

Storage Options that exceed the above Local Storage Limits:
1) Sqlite Plugin:
You can use the plugin maintained by brodysoft. link here

2) Native File access: Need to use cordova file plugins. link here

frank
  • 3,180
  • 3
  • 16
  • 18
0

i think that using SQLite Database will be a good choice, but if you have a realy huge data, the best choice is to use MySQL or Oracle Database on a web server, and then develop REST APIs to communicate with the app. Here is a tutorial about Using Android SQLite Database With Multiple Tables

Houcine
  • 24,001
  • 13
  • 56
  • 83