简体   繁体   English

什么可以提高iOS设备上的WebSQL性能?

[英]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.

相关问题 在移动设备上提高 CSS3 过渡性能的“黄金法则”是什么? - What are the “golden rules” to increase CSS3 transition performance on mobile devices? 如何提高UITableVIew的性能? - How can I increase UITableVIew's performance? Xcode iOS应用程序项目损坏。 我该怎么做才能重新配置设备或提醒系统已配置了设备? - An Xcode iOS app project went corrupt. What can I do to reprovision the devices or remind the system that the devices are provisioned? iOS-需要了解哪些设备可以与CoreBluetooth一起使用 - iOS - Need to understand what devices work with CoreBluetooth 使用iOS gamekit框架可以连接两个设备的范围(距离)是多少 - What is the range (distance) two devices can be connected using the iOS gamekit framework 我们应该使用哪些 iOS 设备来进行合理的功能和性能测试? - Which iOS devices should we have for reasonable functionality and performance testing? iOS 9:按钮上的黑色背景以及某些设备上的性能错误 - iOS 9: Black Background on buttons, and performance errors on some devices 各种iOS设备的跟踪分辨率是多少? - What are the tracking resolutions of the various iOS devices? 嵌入式Jetty服务器可以在ios设备上工作吗? - Can the embedded jetty server work on ios devices? 无法在iOS 6.0.1设备上安装应用 - Can't install app on iOS 6.0.1 devices
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM