Is there a “best” or most popular database for standalone Java app?

人盡茶涼 提交于 2019-12-30 03:14:24

问题


Is there a "best" or more popular database for standalone Java app? I'm currently writing by hand, but I would like to know what is commonly done, if there is something that is commonly done.

update: talking about small app (may grow, but its small for now)


回答1:


I would suggest using something like SQLite with SQLiteJDBC.

It also sounds like HyperSQL and Derby (which ships with certain Java versions) are popular choices.




回答2:


Java 6 ships with Derby (renamed JavaDB). It can be used in memory or server mode.

HyperSQL (HSQLDB) is also popular.




回答3:


For development purposes, I often use the Hypersonic SQL Database (HSQLDB). It's fast and lightweight, and good enough to get started. For a bigger application, I'd go for Derby, which supports more options.




回答4:


The main competitors - HyperSQL (HSQLDB), JavaDB (Derby) and SQLite (not java-based) were mentioned.

There are a few other options:

  • db4o - object database
  • FirebirdSQL - not java-based.
  • Jackrabit - a content repository (not RDBMS) supporting embedded mode.



回答5:


  • HSQLDB is a well-established option.
  • JavaDB comes with the development kit



回答6:


apart all those mentioned here, one can also go for H2 database which is light and can be used in-memory or in server mode.



来源:https://stackoverflow.com/questions/2713758/is-there-a-best-or-most-popular-database-for-standalone-java-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!