ElaSQL

discontinued

by National Tsing Hua University DataLab · since 2016 · also known as ElaSQL deterministic database

NTHU research prototype of a Calvin-style deterministic distributed SQL database built on VanillaDB.

relationalresearch prototypeopen source (permissive)legacy

discontinued. Academic prototype from NTHU (2016-2022); no commits since February 2023. Ideas trace to Calvin and appear in deterministic systems such as Fauna.

Overview

ElaSQL is a distributed relational database prototype from National Tsing Hua University's DataLab (Shan-Hung Wu's group), written in Java on top of the lab's VanillaDB teaching engine. It trades ad-hoc transactions for scalability: every transaction is a pre-registered stored procedure, requests are totally ordered up front, and each replica and partition executes them deterministically, so geo-replicas stay strongly consistent without two-phase commit, following ideas from Calvin. The system is the testbed behind the lab's papers on transaction partitioning (T-Part, SIGMOD 2016), live migration (MgCrab, VLDB 2019) and predictive data partitioning (Hermes, SIGMOD 2021). The last Maven release, 0.3.2, came out in February 2022 and the repository has been quiet since 2023.

Strengths & trade-offs

Strengths

  • +Open, readable Java implementation of Calvin-style deterministic transaction execution
  • +Strongly consistent replicas across datacenters without two-phase commit
  • +Doubles as the reference code for several SIGMOD/VLDB papers on partitioning and migration
  • +Built on VanillaDB, so students can trace it down to the storage layer

Trade-offs

  • −No ad-hoc transactions: every transaction must be a pre-defined stored procedure
  • −Research code with little documentation and no recent maintenance
  • −No operational tooling, security or client ecosystem

Great for

  • +Teaching and studying deterministic distributed databases
  • +Reproducing or extending the T-Part, MgCrab and Hermes experiments
  • +Benchmarking partitioning and live-migration strategies

Think twice for

  • −Production OLTP
  • −Interactive or ad-hoc SQL workloads

Capabilities

Native or official first-party support · 5 of 25 tracked

✓Transactions
✓Joins
✓Secondary indexes
✓Stored procedures
✓Durable persistence
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
Native
Multi-region
Active active
Transactions
Full ACID
Consistency
Strong
Schema
Strict
Architecture
Distributed, Multi primary
Query languages
SQL (inside Java stored procedures)

Partitions data within a datacenter and keeps full replicas per datacenter; evaluated on research clusters, not production.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsJava stored-procedure API, JDBC-style client
client languagesJava

Alternatives to ElaSQL

Compare all→
CalvinKey-Value1.0

Yale research system for deterministic distributed transactions that commits without two-phase commit.

elasql vs calvin →
VanillaDBRelational1.3

Readable Java relational engine from NTHU for teaching database internals and prototyping research.

elasql vs vanilladb →
H-StoreRelational1.3

Brown/MIT/CMU/Yale main-memory, partitioned OLTP research system that became VoltDB.

elasql vs h-store →
Volt Active Data (VoltDB)Relational20.7

In-memory, partitioned SQL engine running Java stored procedures serially for millisecond decisioning.

elasql vs volt-active-data →
CockroachDBRelational47.1

Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions.

elasql vs cockroachdb →
Progress OpenEdgeRelational20.4

Integrated RDBMS plus ABL 4GL application platform behind thousands of ERP and vertical business apps.

elasql vs progress-openedge →

ElaSQL FAQ

What is ElaSQL?

ElaSQL is a relational database by National Tsing Hua University DataLab, first released in 2016. ElaSQL is a distributed relational database prototype from National Tsing Hua University's DataLab (Shan-Hung Wu's group), written in Java on top of the lab's VanillaDB teaching engine. It trades ad-hoc transactions for scalability: every transaction is a pre-registered stored procedure, requests are totally ordered up front, and each replica and partition executes them deterministically, so geo-replicas stay strongly consistent without two-phase commit, following ideas from Calvin. The system is the testbed behind the lab's papers on transaction partitioning (T-Part, SIGMOD 2016), live migration (MgCrab, VLDB 2019) and predictive data partitioning (Hermes, SIGMOD 2021). The last Maven release, 0.3.2, came out in February 2022 and the repository has been quiet since 2023.

Is ElaSQL open source?

Yes. ElaSQL is open source. License: Apache License 2.0.

Does ElaSQL support ACID transactions?

Yes. ElaSQL supports full ACID transactions, with strong consistency.

Does ElaSQL scale horizontally?

ElaSQL scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at small scale (≤ 100 GB). It supports active-active multi-region writes.

How can I run ElaSQL?

You can self-host it.

What is ElaSQL best for?

ElaSQL is a strong fit for teaching and studying deterministic distributed databases; reproducing or extending the T-Part, MgCrab and Hermes experiments; and benchmarking partitioning and live-migration strategies. Think twice for production OLTP.

What are the best alternatives to ElaSQL?

Common alternatives to ElaSQL include Calvin, VanillaDB, H-Store, Volt Active Data (VoltDB) and CockroachDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is ElaSQL still maintained?

ElaSQL is discontinued. Academic prototype from NTHU (2016-2022); no commits since February 2023. Ideas trace to Calvin and appear in deterministic systems such as Fauna.

How popular is ElaSQL?

ElaSQL ranks #646 of 844 databases on the WhichDB Score (0.4/100), and #195 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.