Platinum Partner
java,sql,architects,jdbc,hypersql

HyperSQL - The Sequel

The BSD licensed HyperSQL database (HSQLDB) reached version 2.0 this week.  The "100% Java Database" now supports a wider array of SQL standard features (wider than any open source database engine available, they say).  Version 2.0 is also fully multi-threaded and supports 2PL and MVCC transaction models.  It's been 5 years since HSQLDB's last major release (1.8).  HSQLDB 1.8 is still distributed with many commercial and open source products including OpenOffice.org 3.2.  

HyperSQL 2.0 has nearly achieved full conformance with SQL-1992 Advanced Level and SQL:2008 core language features.  It also includes a large amount of SQL:2008 optional features and extensions.   The main categories of new features in HyperSQL 2.0 are the new core, higher scalability, query optimization, new data types, and stored procedures.

In HyperSQL 2.0, the new core is fully multi-threaded with two phase locking and multi-version concurrency control.  There's also new support for greater BLOB (Binary Large Object) capacity.  Now HSQLDB can store up to 64Tb of data.  The large result sets from queries are able to be stored on disk while they are being generated and accessed.

The new SQL features let HyperSQL handle procedural SQL stored in procedures, including WHILE, IF, WHEN, CASE, and exception handling.  HyperSQL also has new expression types, support for all standard JOIN types and TRIGGER definitions, and multi-row inserts and updates.  BIT, BIT VARYING, CLOB, BLOB and INTERVAL data types have also been implemented in compliance with the SQL standards.  

The HSQLDB developers did their own performance test with the PolePosition package comparing the previous version of HyperSQL to other database engines.  You can see the results here:



The HSQLDB JDBC driver supports nearly full ANSI-92 SQL (BNF format).  HyperSQL 2.0 also has several new JDBC-related features:

  • Supports getGeneratedKeys() calls in Statement and PreparedStatement.
  • Supports POSIX functions TIMESTAMPDIFF and TIMESTAMPADD.
  • Supports Java 1.6 and JDBC4. All applicable new methods are supported.

For the full list of new features, see the list of changes.
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}