HTML5的SQLite VS在PhoneGap的情况下的本地数据库 [英] HTML5 SQLite vs Native Database in case of PhoneGap

查看:132
本文介绍了HTML5的SQLite VS在PhoneGap的情况下的本地数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个PhoneGap的应用程序为Android和iOS。

I am building a PhoneGap application for Android and iOS.

我想知道哪一个是数据库管理的一个更好的选择:HTML5的SQLite的或设备的本地数据库

I want to know which one is a better selection for database management: HTML5's SQLite or Native database of device.

在的情况下使用本机,我需要建立一个插件的互动。

In case of native use, i need to build a plugin for interaction.

请根据性能和速度提出了我一个更好的选择。

Please suggest me a better option according to performance and speed.

推荐答案

我已经测试了POC的安卓/ iOS的乡土DB是太多的速度,然后WebSQL,(HTML5的)的情况下,PhoneGap的应用程序,我们应该使用一个插件的本地数据库。 在我的测试;我已经运行999插入查询的PhoneGap的应用程序与插件原生环境,其结果是:

i have tested with a POC that Native DB of Android/iOS is too much faster then WebSQL (of HTML5), in case of a PhoneGap App we should use a plugin for Native database. in my test; i have run 999 insert query in a PhoneGap App with Plugin for native environment and the results are:

在Android的查询是在模拟器快558%,275%的速度在宏达电Droid HD和惊人的2327%的速度为HTC野火。

in Android queries are 558% faster in Emulator, 275% faster in htc droid hd and amazingly 2327% faster for htc wildfire.

在iOS中,但结果就是热闹查询是在模拟器/ iPhone 4和5600%的iPhone 3GS更快的2K +的百分比速度更快。

in iOS the results are just hilarious queries are 2k+ percentage faster in Simulator/iPhone 4 and 5600% faster in iPhone 3GS.

这篇关于HTML5的SQLite VS在PhoneGap的情况下的本地数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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