Frequently Asked QuestionsI Have a Problem or Feature RequestAre there Known Bugs? When is the Next Release? Is this Database Engine Open Source? My Query is Slow 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? Column Names are Incorrect? Is the GCJ Version Stable? Faster? How to Translate 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. My Query is Slow
Slow
How to Create a New Database?By default, a new database is automatically created if it does not yet exist. See Creating New Databases. How to Connect to a Database?
The database driver is Class.forName("org.h2.Driver"); 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 very high. 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. Some areas of this database are not fully tested. When using one of those features for production, please ensure your use case is well tested (if possible with automated test cases). Those areas 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. Column Names are Incorrect?
For the query
This is not a bug. According the 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. 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. To find out what the problem is, open the database in embedded mode using the H2 Console. This will print progress information. If you have many lines with 'Creating index' it is an indication that the database was not closed the last time. Other possible reasons are: the database is very big (many GB), or contains linked tables that are slow to open. Is the GCJ Version Stable? Faster?The GCJ version is not as stable as the Java version. When running the regression test with the GCJ version, sometimes the application just stops at what seems to be a random point without error message. Currently, the GCJ version is also slower than when using the Sun VM. However, the startup of the GCJ version is faster than when using a VM. How to Translate this Project?For more information, see Build/Translating. |