1

I have a bulk of data in my app. I need it in case the app runs offline.

Currently I have it in a data.js file and use the jQuery data function to manage it. There are 1800 lines like this. ~500kb in total.

$.data(db,'Aarstraße',['34236:1','34246:2','34270:4','34290:6',...]);

Is there a better way to store this data?

My main concern is performance. Not to query some data but the app performance in total like RAM usage and startup time.

1 Answer 1

1

My recommendation is for you to pre-populate a SQLite DB and on application startup copy the DB to the correct location so your app can access it. There is a good blog post on this topic at:

http://gauravstomar.blogspot.com/2011/08/prepopulate-sqlite-in-phonegap.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+GauravSTomarBootstrappingIntelligence+%28Gaurav+S+Tomar+%3A+Bootstrapping+Intelligence%29

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.