H2 Database vs SQLite on Android

后端 未结 2 749
孤街浪徒
孤街浪徒 2020-12-01 12:58

Because of the lack of Unicode support on the embedded SQLite database in Android

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

2条回答
  •  猫巷女王i
    2020-12-01 13:29

    I would be also very interested in real-world performance tests for the H2 database on Android. I think that H2 will be a lot slower than SQLite, mainly because the virtual machine on Android is still not that great. This got better with Android 2.2, but I think there is still a big difference. My guess is that H2 is currently about 10 times slower. But that's only a guess.

    About the Unicode problem: what about converting strings to UTF-8 before storing them in SQLite?

提交回复
热议问题