Frequently Asked QuestionsI Have a Problem or Feature RequestAre there Known Bugs? When is the Next Release? Is this Database Engine Open Source? Is Commercial Support Available? How to Create a New Database? How to Connect to a Database? Where are the Database Files Stored? What is the Size Limit (Maximum Size) of a Database? Is it Reliable? Why is Opening my Database Slow? My Query is Slow H2 is Very Slow Column Names are Incorrect? Float is Double? How to Translate this Project? How to Contribute to this Project? I Have a Problem or Feature RequestPlease read the support checklist. Are there Known Bugs? When is the Next Release?Usually, bugs get fixes as they are found. There is a release every few weeks. Here is the list of known and confirmed issues:
For a complete list, see Open Issues. Is this Database Engine Open Source?Yes. It is free to use and distribute, and the source code is included. See also under license. Is Commercial Support Available?No, currently commercial support is not available. How to Create a New Database?By default, a new database is automatically created if it does not yet exist when embedded URL is used. See Creating New Databases. How to Connect to a Database?
The database driver is Connection conn = DriverManager.getConnection("jdbc:h2:~/test", "sa", ""); Where are the Database Files Stored?
When using database URLs like What is the Size Limit (Maximum Size) of a Database?Is it Reliable?That is not easy to say. It is still a quite new product. A lot of tests have been written, and the code coverage of these tests is higher than 80% for each package. Randomized stress tests are run regularly. But there are probably still bugs that have not yet been found (as with most software). Some features are known to be dangerous, they are only supported for situations where performance is more important than reliability. Those dangerous features are:
In addition to that, running out of memory should be avoided. In older versions, OutOfMemory errors while using the database could corrupt a databases. This database is well tested using automated test cases. The tests run every night and run for more than one hour. But not all areas of this database are equally well tested. When using one of the following features for production, please ensure your use case is well tested (if possible with automated test cases). The areas that are not well tested are:
Areas considered experimental are:
Some users have reported that after a power failure, the database cannot be opened sometimes. In this case, use a backup of the database or the Recover tool. Please report such problems. The plan is that the database automatically recovers in all situations. Why is Opening my Database Slow?To find out what the problem is, use the H2 Console and click on "Test Connection" instead of "Login". After the "Login Successful" appears, click on it (it's a link). This will list the top stack traces. Then either analyze this yourself, or post those stack traces in the Google Group. Other possible reasons are: the database is very big (many GB), or contains linked tables that are slow to open. My Query is Slow
Slow
H2 is Very SlowBy default, H2 closes the database when the last connection is closed. If your application closes the only connection after each operation, the database is opened and closed a lot, which is quite slow. There are multiple ways to solve this problem, see Database Performance Tuning. Column Names are Incorrect?
For the query
This is not a bug. According the JDBC specification, the method
This also applies to DatabaseMetaData calls that return a result set. The columns in the JDBC API are column labels, not column names. Float is Double?
For a table defined as
This is not a bug. According the JDBC specification, the JDBC data type Use REAL or FLOAT(24) data type for How to Translate this Project?For more information, see Build/Translating. How to Contribute to this Project?There are various way to help develop an open source project like H2. The first step could be to translate the error messages and the GUI to your native language. Then, you could provide patches. Please start with small patches. That could be adding a test case to improve the code coverage (the target code coverage for this project is 90%, higher is better). You will have to develop, build and run the tests. Once you are familiar with the code, you could implement missing features from the feature request list. I suggest to start with very small features that are easy to implement. Keep in mind to provide test cases as well. |