jquery mobile和phonegap的大数据库 [英] Large database for jquery mobile and phonegap

查看:85
本文介绍了jquery mobile和phonegap的大数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jquery mobile和phonegap为Android和ios构建一个移动应用程序。这只是一个名称及其地址的集合,总共超过7000行。正如我所知,phonegap不支持数据迁移,所以这意味着如果我必须使用sqllite,我必须注入大量的数据到手机的sql首次启动时。我认为这是一个问题,因为它需要一段时间,可能会强制关闭应用程序,或可能推迟用户。

I am building a mobile app using jquery mobile and phonegap for both android and ios. This is just a collection of names and their addresses which amounted to over 7 thousand rows. As I've learned, phonegap doesn't support data migration so this means that if I have to use sqllite, I have to inject the large amount of data into phone's sql on first launch. I think this is a problem as it will take awhile and may force close the app, or may put off users.

有没有其他方法完成这一切, ?是否可以将这些数据放在一个文本文件?但不知道如果jqm有能力使用这种方法进行搜索和更新。我显然失去了。我已经搜索谷歌这个,但没有解决方案。请帮忙。非常感谢。

Is there any other way accomplish this without causing heavy injections? is it possible to put these data in one text file? but am not sure if jqm has the ability to search and update using this method. I am clearly lost. I have searched google about this but no solution found. Please help. many thanks.

推荐答案

这是一个很好的教程如何复制和预先创建DB到您的PhoneGap应用程序:

Here is a good tutorial on how to copy and pre-created DB into your PhoneGap app:

教程链接

这篇关于jquery mobile和phonegap的大数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆