DB-EnginesExtremeDB for everyone with an RTOSEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > CockroachDB vs. CrateDB vs. H2 vs. HyperSQL vs. LokiJS

System Properties Comparison CockroachDB vs. CrateDB vs. H2 vs. HyperSQL vs. LokiJS

Editorial information provided by DB-Engines
NameCockroachDB  Xexclude from comparisonCrateDB  Xexclude from comparisonH2  Xexclude from comparisonHyperSQL infoalso known as HSQLDB  Xexclude from comparisonLokiJS  Xexclude from comparison
DescriptionCockroachDB is a distributed database architected for modern cloud applications. It is wire compatible with PostgreSQL and backed by a Key-Value Store, which is either RocksDB or a purpose-built derivative, called Pebble.Distributed Database based on LuceneFull-featured RDBMS with a small footprint, either embedded into a Java application or used as a database server.Multithreaded, transactional RDBMS written in Java infoalso known as HSQLDBIn-memory JavaScript DBMS
Primary database modelRelational DBMSDocument store
Spatial DBMS
Search engine
Time Series DBMS
Vector DBMS
Relational DBMSRelational DBMSDocument store
Secondary database modelsRelational DBMSSpatial DBMS
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score6.15
Rank#55  Overall
#33  Relational DBMS
Score0.73
Rank#224  Overall
#37  Document stores
#5  Spatial DBMS
#16  Search engines
#19  Time Series DBMS
#8  Vector DBMS
Score8.13
Rank#49  Overall
#31  Relational DBMS
Score3.49
Rank#87  Overall
#47  Relational DBMS
Score0.43
Rank#264  Overall
#42  Document stores
Websitewww.cockroachlabs.comcratedb.comwww.h2database.comhsqldb.orggithub.com/­techfort/­LokiJS
Technical documentationwww.cockroachlabs.com/­docscratedb.com/­docswww.h2database.com/­html/­main.htmlhsqldb.org/­web/­hsqlDocsFrame.htmltechfort.github.io/­LokiJS
DeveloperCockroach LabsCrateThomas Mueller
Initial release20152013200520012014
Current release23.1.1, May 20232.2.220, July 20232.7.2, June 2023
License infoCommercial or Open SourceOpen Source infoApache 2.0, commercial license availableOpen SourceOpen Source infodual-licence (Mozilla public license, Eclipse public license)Open Source infobased on BSD licenseOpen Source
Cloud-based only infoOnly available as a cloud servicenonononono
DBaaS offerings (sponsored links) infoDatabase as a Service

Providers of DBaaS offerings, please contact us to be listed.
CrateDB Cloud: a distributed SQL database that spreads data and processing across an elastic cluster of shared nothing nodes. CrateDB Cloud enables data insights at scale on Microsoft Azure, AWS and Google Cloud Platform.
Implementation languageGoJavaJavaJavaJavaScript
Server operating systemsLinux
macOS
Windows
All Operating Systems, including Kubernetes with CrateDB Kubernetes Operator supportAll OS with a Java VMAll OS with a Java VM infoEmbedded (into Java applications) and Client-Server operating modesserver-less, requires a JavaScript environment (browser, Node.js)
Data schemedynamic schemaFlexible Schema (defined schema, partial schema, schema free)yesyesschema-free
Typing infopredefined data types such as float or dateyesyesyesyesno
XML support infoSome form of processing data in XML format, e.g. support for XML data structures, and/or support for XPath, XQuery or XSLT.nonononono
Secondary indexesyesyesyesyesyes infovia views
SQL infoSupport of SQLyes, wire compatible with PostgreSQLyes, but no triggers and constraints, and PostgreSQL compatibilityyesyesno
APIs and other access methodsJDBCADO.NET
JDBC
ODBC
PostgreSQL wire protocol
Prometheus Remote Read/Write
RESTful HTTP API
JDBC
ODBC
HTTP API infoJDBC via HTTP
JDBC
ODBC
JavaScript API
Supported programming languagesC#
C++
Clojure
Go
Java
JavaScript (Node.js)
PHP
Python
Ruby
Rust
.NET
Erlang
Go infocommunity maintained client
Java
JavaScript (Node.js) infocommunity maintained client
Perl infocommunity maintained client
PHP
Python
R
Ruby infocommunity maintained client
Scala infocommunity maintained client
JavaAll languages supporting JDBC/ODBC
Java
JavaScript
Server-side scripts infoStored proceduresnouser defined functions (Javascript)Java Stored Procedures and User-Defined FunctionsJava, SQLView functions in JavaScript
Triggersnonoyesyesyes
Partitioning methods infoMethods for storing different data on different nodeshorizontal partitioning (by key range) infoall tables are translated to an ordered KV store and then broken down into 64MB ranges, which are then used as replicas in RAFTShardingnonenonenone
Replication methods infoMethods for redundantly storing data on multiple nodesMulti-source replication using RAFTConfigurable replication on table/partition-levelWith clustering: 2 database servers on different computers operate on identical copies of a databasenonenone
MapReduce infoOffers an API for user-defined Map/Reduce methodsnonononoyes
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyEventual Consistency
Read-after-write consistency on record level
Immediate ConsistencyImmediate Consistencynone
Foreign keys infoReferential integrityyesnoyesyesno
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACIDno infounique row identifiers can be used for implementing an optimistic concurrency control strategyACIDACIDno infoatomic operations within a single collection possible
Concurrency infoSupport for concurrent manipulation of datayesyesyes, multi-version concurrency control (MVCC)yes
Durability infoSupport for making data persistentyesyesyesyesyes infoSerialization of a DB in a Node.JS/Cordova/PhoneGap environment. Usage of the IndexedDB-API in a browser.
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.nonoyesyesyes
User concepts infoAccess controlRole-based access controlrights management via user accountsfine grained access rights according to SQL-standardfine grained access rights according to SQL-standardno
More information provided by the system vendor
CockroachDBCrateDBH2HyperSQL infoalso known as HSQLDBLokiJS
Specific characteristicsThe enterprise database for time series, documents, and vectors. Distributed - Native...
» more
Competitive advantagesResponse time in milliseconds: e ven for complex ad-hoc queries. Massive scaling...
» more
Typical application scenarios​ IoT: accelerate your IIoT projects with CrateDB, delivering real-time analytics...
» more
Key customersAcross all continents, CrateDB is used by companies of all sizes to meet the most...
» more
Market metricsThe CrateDB open source project was started in 2013 Honorable Mention in 2021 Gartner®...
» more
Licensing and pricing modelsSee CrateDB pricing >
» more

We invite representatives of system vendors to contact us for updating and extending the system information,
and for displaying vendor-provided information such as key customers, competitive advantages and market metrics.

Related products and services

We invite representatives of vendors of related products to contact us for presenting information about their offerings here.

More resources
CockroachDBCrateDBH2HyperSQL infoalso known as HSQLDBLokiJS
DB-Engines blog posts

New kids on the block: database management systems implemented in JavaScript
1 December 2014, Matthias Gelbmann

show all

Recent citations in the news

Cockroach Labs Deepens Partnership with Google Cloud, CockroachDB Selected to Join Google Distributed Cloud
9 April 2024, PR Newswire

DoorDash Uses CockroachDB to Create Config Management Platform for Microservices
14 February 2024, InfoQ.com

How to Unlock Real-Time Data Streams with CockroachDB and Amazon MSK | Amazon Web Services
6 November 2023, AWS Blog

CockroachDB tempts legacy databases to crawl into the cloud age
29 January 2024, The Register

How DoorDash Migrated from Aurora Postgres to CockroachDB
5 December 2023, The New Stack

provided by Google News

CrateDB Announces Availability of CrateDB on Google Cloud Marketplace
8 April 2024, Datanami

CrateDB Partners with HiveMQ to Advance IoT Data Management and Analytics Across Industries
25 March 2024, Datanami

How We Designed CrateDB as a Realtime SQL DBMS for the Internet of Things
29 August 2017, The New Stack

Crate.io Introduces CrateDB 2.0 Enterprise and Open Source Editions
16 May 2017, Business Wire

Crate.io raises $10M to grow its database platform
15 June 2021, VentureBeat

provided by Google News

HyperSQL DataBase flaw leaves library vulnerable to RCE
24 October 2022, The Daily Swig

Introduction to JDBC with HSQLDB tutorial
14 November 2022, TheServerSide.com

provided by Google News

LokiJS - A JavaScript Database
18 November 2014, iProgrammer

provided by Google News



Share this page

Featured Products

Datastax Astra logo

Bring all your data to Generative AI applications with vector search enabled by the most scalable
vector database available.
Try for Free

RaimaDB logo

RaimaDB, embedded database for mission-critical applications. When performance, footprint and reliability matters.
Try RaimaDB for free.

Milvus logo

Vector database designed for GenAI, fully equipped for enterprise implementation.
Try Managed Milvus for Free

Neo4j logo

See for yourself how a graph database can make your life easier.
Use Neo4j online for free.

SingleStore logo

The database to transact, analyze and contextualize your data in real time.
Try it today.

Present your product here