[英]What can increase performance of WebSQL on iOS devices?
I have PhoneGap app running on Android and iOS, it is using WebSQL. 我有在Android和iOS上运行的PhoneGap应用,它正在使用WebSQL。 One table has 10 columns and about 350 rows.
一张桌子有10列,大约350行。 When I run simple query:
当我运行简单查询时:
SELECT * FROM table ORDER BY name_column
Now this runs pretty good on Android - it takes about 2-3 seconds to execute. 现在,这在Android上运行非常好-执行大约需要2-3秒。 But on iOS devices - eg iPhone 3G - it takes about 30 seconds and that is unacceptably slow.
但是在iOS设备(例如iPhone 3G)上,大约需要30秒,而且速度太慢,这是无法接受的。
Is there any way how to make this run faster on iOS ? 有什么方法可以使它在iOS上更快地运行吗? Or what would be other way how to accomplish this functionality ?
或还有什么其他方式可以实现此功能?
have you tried putting an index on that column? 您是否尝试过在该列上添加索引? http://www.sqlite.org/lang_createindex.html
http://www.sqlite.org/lang_createindex.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.