I am creating mobile application using HTML5 (AngularJS, PhoneGap). For local data storage I am using PhoneGap. My application is kind of account management software which required to store lot of relational data on local db. I deployed the application on mobile using command.
cordova run android
I am using following script to data store http://docs.phonegap.com/en/3.0.0/cordova_storage_storage.md.html#Storage
This is working properly but performance is really bad (I having Moto G, Quad Core processor, 1 GB RAM). I fired 3 different select query on local database, and it took almost 2-3 second to process. each 3 table has only 1 rows.
I have seen performance matrices provided here. But to reduce my overall effort I am thinking of using PhoneGap.
So here are my questions
- How to improve performance with phoneGap on mobile database?
- I checked the db file application creating in emulator. Found that it's sqlite db file. The same database gives very good performance on native android application. How?
- Since I am creating mobile application with local database. How suggestive it is to use phonegap database interface?