vs

HyperSQL (HSQLDB) vs Lealone

HyperSQL (HSQLDB): Long-running pure-Java SQL database with strong SQL:2023 coverage, used embedded and in LibreOffice. Lealone: Chinese Java OLTP database derived from H2, now repositioned as an AI agent platform built on its SQL engine.

key differences

  • Licensing: HyperSQL (HSQLDB) is open source (permissive) (HSQLDB License (BSD-style)); Lealone is source-available (Server Side Public License v1 (H2-derived files under the H2 license)).
  • Lealone is built for larger datasets (≤ 10 TB) than HyperSQL (HSQLDB) (≤ 100 GB).
  • Horizontal scaling is none in HyperSQL (HSQLDB) and native in Lealone.
  • Only HyperSQL (HSQLDB) has triggers, stored procedures, encryption at rest, time travel.
  • Only Lealone has full-text search.

choose hsqldb for

  • +Embedded storage in Java applications
  • +Unit tests needing strict SQL semantics
  • +LibreOffice Base documents
  • +Teaching SQL standard features

best at · Embedded, OLTP

choose lealone for

  • +Embedded or standalone OLTP in Java applications
  • +Experimenting with SQL-defined services and LLM-generated apps
  • +Learning a modern rework of the H2 codebase

best at · OLTP, Embedded

overview
Primary model
Relational
Relational
Also supports
–
Document
Type
Database engine
Database engine
Status
Active
Active
Developer
The hsql Development Group
Lealone Database Group (zhh)
First release
2001
2013
Latest version
2.7.4 (Oct 25, 2024)
6.0.1 (Aug 18, 2024)
License
Open source (permissive)HSQLDB License (BSD-style)
Source-availableServer Side Public License v1 (H2-derived files under the H2 license)
Free tier
✓
✓
popularity
WhichDB Score
9.4
2.8
Rank
#312
#458
GitHub stars
–
2.6K
Stack Overflow questions
2.5K
–
scale & guarantees
Comfortable data size
Small (≤ 100 GB)
Medium (≤ 10 TB)
Horizontal scaling
None
Native
Multi-region
None
None
ACID
Full
Full
Consistency
Strong
Strong
Schema
Strict
Strict
Architecture
Embedded, In memory, Client server, Single node
Embedded, Client server, Distributed
deployment
Self-hosted
✓
✓
Vendor-managed cloud
—
—
Serverless
—
—
Embedded
✓
✓
Edge
—
—
Clouds
–
–
capabilities
Transactions
✓
✓
Joins
✓
✓
Secondary indexes
✓
✓
Full-text search
—
✓
Vector search
—
—
Geospatial
—
—
JSON
—
—
Change data capture
—
—
Triggers
✓
—
Stored procedures
✓
—
Materialized views
—
—
TTL / expiry
—
—
Pub/Sub
—
—
Columnar storage
—
—
In-memory
✓
✓
Durable persistence
✓
✓
Compression
—
—
Encryption at rest
✓
—
Role-based access
✓
✓
Time travel
✓
—
Branching
—
—
Online schema changes
—
—
Streaming ingest
—
—
Offline sync
—
—
Runs in WebAssembly
—
—
interfaces
Query languages
SQL
SQL
Client languages
Java
Java
Best for
Embedded, OLTP
OLTP, Embedded

HyperSQL (HSQLDB) vs Lealone: FAQ

What is the difference between HyperSQL (HSQLDB) and Lealone?

HyperSQL (HSQLDB): Long-running pure-Java SQL database with strong SQL:2023 coverage, used embedded and in LibreOffice. Lealone: Chinese Java OLTP database derived from H2, now repositioned as an AI agent platform built on its SQL engine. Licensing: HyperSQL (HSQLDB) is open source (permissive) (HSQLDB License (BSD-style)); Lealone is source-available (Server Side Public License v1 (H2-derived files under the H2 license)). Lealone is built for larger datasets (≤ 10 TB) than HyperSQL (HSQLDB) (≤ 100 GB). Horizontal scaling is none in HyperSQL (HSQLDB) and native in Lealone.

When should I choose HyperSQL (HSQLDB) over Lealone?

Choose HyperSQL (HSQLDB) for embedded storage in Java applications, unit tests needing strict SQL semantics and LibreOffice Base documents. Choose Lealone for embedded or standalone OLTP in Java applications; experimenting with SQL-defined services and LLM-generated apps; and learning a modern rework of the H2 codebase.

Is HyperSQL (HSQLDB) or Lealone more popular?

HyperSQL (HSQLDB) ranks #312 on the WhichDB Score (9.4/100) and Lealone ranks #458 (2.8/100). Popularity is not fit: check the requirements that matter for your project.

Are HyperSQL (HSQLDB) and Lealone open source?

Yes. HyperSQL (HSQLDB) is open source. License: HSQLDB License (BSD-style). Not in the OSI sense. Lealone is source-available: you can read the code, but the license restricts some uses, typically offering it as a competing managed service. License: Server Side Public License v1 (H2-derived files under the H2 license).