H2数据库SQLite的VS Android上数据库、SQLite、Android、VS

2023-09-12 09:16:18 作者:努力,只为遇见更好的自己

由于缺乏统一code支持嵌入式SQLite数据库上的在Android的

我最感兴趣的是性能和 H2数据库的稳定性和Android手机的 SQLite的

I am mostly interested in performance and stability of H2 Database vs Android SQLite

是你们用它? 我应该知道的任何H2数据库的缺点?

Are you guys using it? Should I be aware of any H2 database shortcomings?

推荐答案

东西是好多比我所预期。我现在有一个Android手机(HTC Desire的,Android 2.2的),我做了第一次测试。

Things are much better than I have expected. I now have an Android phone (HTC Desire, Android 2.2) and I made a first test.

打开和关闭数据库是比较慢的,到目前为止(第二次打开现有的数据库需要0.2秒,关闭0.2秒左右),但除此之外,它看起来像H2表现相当好Android上,即使Dalvik虚拟机是还不是优化作为一个桌面JVM。这是太早给具体的数字,但Android是目前支持的平台。

Opening and closing a database is relatively slow so far (opening an existing database for the second time takes 0.2 seconds, closing about 0.2 seconds), but otherwise it looks like H2 performs quite well on Android, even if the Dalvik VM is not yet as optimized as a desktop JVM. It's too early to give concrete numbers, but Android is now a supported platform.