H2数据库和SQLite在Android上

H2数据库和SQLite在Android上

本文介绍了H2数据库和SQLite在Android上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于

我最感兴趣的是和Android

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 VM还没有像桌面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.

这篇关于H2数据库和SQLite在Android上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 10:16