DB-EnginesExtremeDB: the mission critical dbmsEnglish
Deutsch
Knowledge Base of Relational and NoSQL Database Management Systemsprovided by solid IT

DBMS > CockroachDB vs. MongoDB vs. TerarkDB

System Properties Comparison CockroachDB vs. MongoDB vs. TerarkDB

Please select another system to include it in the comparison.

Editorial information provided by DB-Engines
NameCockroachDB  Xexclude from comparisonMongoDB  Xexclude from comparisonTerarkDB  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.One of the most popular document stores available both as a fully managed cloud service and for deployment on self-managed infrastructureA key-value store forked from RocksDB with advanced compression algorithms. It can be used standalone or as a storage engine for MySQL and MongoDB
Primary database modelRelational DBMSDocument storeKey-value store
Secondary database modelsSpatial DBMS
Search engine infointegrated Lucene index, currently in MongoDB Atlas only.
Time Series DBMS infoTime Series Collections introduced in Release 5.0
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score7.27
Rank#57  Overall
#33  Relational DBMS
Score452.77
Rank#5  Overall
#1  Document stores
Score0.25
Rank#337  Overall
#51  Key-value stores
Websitewww.cockroachlabs.comwww.mongodb.comgithub.com/­Terark/­terarkdb
Technical documentationwww.cockroachlabs.com/­docsdocs.mongodb.com/­manualgithub.com/­Terark/­terarkdb/­wiki
DeveloperCockroach LabsMongoDB, IncTerark
Initial release201520092016
Current release21.1.2, June 20216.0.1, August 2022
License infoCommercial or Open SourceOpen Source infoApache 2.0, commercial license availableOpen Source infoMongoDB Inc.'s Server Side Public License v1. Prior versions were published under GNU AGPL v3.0. Commercial licenses are also available.commercial inforestricted open source version available
Cloud-based only infoOnly available as a cloud servicenono infoMongoDB available as DBaaS (MongoDB Atlas)no
DBaaS offerings (sponsored links) infoDatabase as a Service

Providers of DBaaS offerings, please contact us to be listed.
CockroachDB: A cloud-native, distributed SQL database designed for speed, scale, and survival. Get started for free today with a fully-managed CockroachDB cluster -- leave operations behind and get your app to market faster.ScaleGrid for MongoDB Database: Fully managed hosting for MongoDB Database on a wide variety of cloud providers and On-Premises. Automate your management, scaling and backups through one centralized platform.
Implementation languageGoC++C++
Server operating systemsLinux
macOS
Windows
Linux
OS X
Solaris
Windows
Data schemedynamic schemaschema-free infoAlthough schema-free, documents of the same collection often follow the same structure. Optionally impose all or part of a schema by defining a JSON schema.schema-free
Typing infopredefined data types such as float or dateyesyes infostring, integer, double, decimal, boolean, date, object_id, geospatialno
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.nono
Secondary indexesyesyesno
SQL infoSupport of SQLyes, wire compatible with PostgreSQLRead-only SQL queries via the MongoDB Connector for BIno
APIs and other access methodsJDBCproprietary protocol using JSONC++ API
Java API
Supported programming languagesC#
C++
Clojure
Go
Java
JavaScript (Node.js)
PHP
Python
Ruby
Rust
Actionscript infounofficial driver
C
C#
C++
Clojure infounofficial driver
ColdFusion infounofficial driver
D infounofficial driver
Dart infounofficial driver
Delphi infounofficial driver
Erlang
Go
Groovy infounofficial driver
Haskell
Java
JavaScript
Lisp infounofficial driver
Lua infounofficial driver
MatLab infounofficial driver
Perl
PHP
PowerShell infounofficial driver
Prolog infounofficial driver
Python
R infounofficial driver
Ruby
Rust
Scala
Smalltalk infounofficial driver
Swift
C++
Java
Server-side scripts infoStored proceduresnoJavaScriptno
Triggersnoyes infoin MongoDB Atlas onlyno
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 RAFTSharding infoPartitioned by hashed, ranged, or zoned sharding keys. Live resharding allows users to change their shard keys as an online operation with zero downtime.none
Replication methods infoMethods for redundantly storing data on multiple nodesMulti-source replication using RAFTMulti-Source deployments with MongoDB Atlas Global Clusters
Source-replica replication
none
MapReduce infoOffers an API for user-defined Map/Reduce methodsnoyesno
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyEventual Consistency
Immediate Consistency infocan be individually decided for each write operation
Foreign keys infoReferential integrityyesno infotypically not used, however similar functionality with DBRef possibleno
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACIDMulti-document ACID Transactions with snapshot isolationno
Concurrency infoSupport for concurrent manipulation of datayesyesyes
Durability infoSupport for making data persistentyesyes infooptional, enabled by defaultyes
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.noyes infoIn-memory storage engine introduced with MongoDB version 3.2yes
User concepts infoAccess controlRole-based access controlAccess rights for users and rolesno
More information provided by the system vendor
CockroachDBMongoDBTerarkDB
Specific characteristicsCockroachDB is a cloud-native, distributed SQL database architected for modern applications....
» more
Competitive advantages- EFFORTLESS SCALE: Scale your applications, not operational complexity. CockroachDB...
» more
Typical application scenariosSystem of record (financial ledger, inventory management, transaction record), identity...
» more
Key customersComcast, DoorDash, Mythical Games, Norfolk Southern, LUSH, Bose, Shipt, Bitski, Five9,...
» more
Market metrics8K+ long-running clusters 25K+ CockroachDB self-hosted clusters 75K+ CockroachDB...
» more
Licensing and pricing models- Apache 2.0 for core features released up to and including the 19.1 release - Time-limited...
» 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
3rd partiesCData: Connect to Big Data & NoSQL through standard Drivers.
» more

Percona: Database problems? Not on your watch.
Databases run better with Percona.
» more

Studio 3T: The world's favorite IDE for working with MongoDB
» more

Navicat for MongoDB gives you a highly effective GUI interface for MongoDB database management, administration and development.
» more

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

More resources
CockroachDBMongoDBTerarkDB
DB-Engines blog posts

Snowflake is the DBMS of the Year 2021
3 January 2022, Paul Andlinger, Matthias Gelbmann

PostgreSQL is the DBMS of the Year 2020
4 January 2021, Paul Andlinger, Matthias Gelbmann

PostgreSQL is the DBMS of the Year 2018
2 January 2019, Paul Andlinger, Matthias Gelbmann

show all

Recent citations in the news

Database Futures with a Cockroach Labs Co-Founder
27 January 2023, Datanami

Let SQL Do All the Work: User Defined Functions
31 January 2023, The New Stack

CockroachDB Toughens Shell For Data-Intense Journey To Cloud
7 December 2022, Forbes

Cockroach Labs debuts serverless edition of its popular ...
21 September 2022, SiliconANGLE News

Legal ops group welcomes three new board members
6 January 2023, Legal Dive

provided by Google News

BlackRock Cuts Stake in Mongodb (MDB)
1 February 2023, Nasdaq

Is MongoDB (MDB) Stock Outpacing Its Computer and Technology ...
2 February 2023, Nasdaq

Satori Expands Support to NoSQL Databases, Streamlines Secure ...
19 January 2023, Datanami

MongoDB Has Hit My Buying Threshold (NASDAQ:MDB)
7 January 2023, Seeking Alpha

Premarket Mover: Mongodb Inc (MDB) Down 2.44%
25 January 2023, InvestorsObserver

provided by Google News

Understand NVMe 2.0 specification and its related features
4 January 2022, TechTarget

Terark, A Chinese Startup, May Have Just Revolutionized How Data Is Stored, Accessed & Analyzed
26 June 2017, Indiatimes.com

provided by Google News

Job opportunities

Senior Tech Specialist
Zodient, Remote

Cloud Engineering
Zodient, Remote

Distributed Systems Engineer
LaunchDarkly, Remote

Principal Database Administrator
Fidelity Investments, Merrimack, NH

Senior Database Administrator
Fidelity Investments, Durham, NC

General Apply
Bevy, San Francisco, CA

MongoDB Consultant
Pristine IT, Remote

MongoDB Architect/SrDev
Tech Mahindra / Microsoft, Remote

MongoDB _ Remote (Till Covid)
Teksky, United States

MongoDB Engineer
Alltech International, Remote

jobs by Indeed



Share this page

Featured Products

Vertica logo

Vertica Accelerator. The fastest analytics and machine learning, delivered as SaaS, with automated setup, administration, and management. Free trial.

Redis logo

The world’s most loved real‑time data platform.
Try free

Neo4j logo

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

Datastax Astra logo

Build cloud-native apps fast with Astra, the open-source, multi-cloud stack for
modern data apps.
Get started with 80GB free.

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

Present your product here