HTML5 SQLite vs Native Database in case of PhoneGap

后端 未结 3 1988
清酒与你
清酒与你 2021-02-09 14:04

I am building a PhoneGap application for Android and iOS.

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

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-09 15:03

    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:

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

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

提交回复
热议问题