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

DBMS > CockroachDB vs. TiDB

System Properties Comparison CockroachDB vs. TiDB

Please select another system to include it in the comparison.

Our visitors often compare CockroachDB and TiDB with MySQL, YugabyteDB and VelocityDB.

Editorial information provided by DB-Engines
NameCockroachDB  Xexclude from comparisonTiDB  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.TiDB is an open source distributed Hybrid Transactional/Analytical Processing (HTAP) database that supports MySQL and Spark SQL syntaxes.
Primary database modelRelational DBMSRelational DBMS
Secondary database modelsDocument store
DB-Engines Ranking infomeasures the popularity of database management systemsranking trend
Trend Chart
Score7.27
Rank#57  Overall
#33  Relational DBMS
Score3.01
Rank#108  Overall
#54  Relational DBMS
Websitewww.cockroachlabs.compingcap.com
Technical documentationwww.cockroachlabs.com/­docsdocs.pingcap.com/­tidb/­stable
DeveloperCockroach LabsPingCAP, Inc.
Initial release20152016
Current release21.1.2, June 20216.5.0, December 2022
License infoCommercial or Open SourceOpen Source infoApache 2.0, commercial license availableOpen Source infoApache 2.0
Cloud-based only infoOnly available as a cloud servicenono
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.TiDB Cloud: Fully-managed TiDB Service. Bring everything great about TiDB to the cloud.
Implementation languageGoGo, Rust
Server operating systemsLinux
macOS
Windows
Linux
Data schemedynamic schemayes
Typing infopredefined data types such as float or dateyesyes
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 indexesyesyes
SQL infoSupport of SQLyes, wire compatible with PostgreSQLyes
APIs and other access methodsJDBCJDBC
ODBC
Proprietary protocol
Supported programming languagesC#
C++
Clojure
Go
Java
JavaScript (Node.js)
PHP
Python
Ruby
Rust
Ada
C
C#
C++
D
Delphi
Eiffel
Erlang
Haskell
Java
JavaScript (Node.js)
Objective-C
OCaml
Perl
PHP
Python
Ruby
Scheme
Tcl
Server-side scripts infoStored proceduresnono
Triggersnono
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 RAFThorizontal partitioning (by key range)
Replication methods infoMethods for redundantly storing data on multiple nodesMulti-source replication using RAFTUsing Raft consensus algorithm to ensure data replication with strong consistency among multiple replicas.
MapReduce infoOffers an API for user-defined Map/Reduce methodsnoyes infowith TiSpark Connector
Consistency concepts infoMethods to ensure consistency in a distributed systemImmediate ConsistencyImmediate Consistency
Foreign keys infoReferential integrityyesno infocurrently only supported in syntax
Transaction concepts infoSupport to ensure data integrity after non-atomic manipulations of dataACIDACID
Concurrency infoSupport for concurrent manipulation of datayesyes
Durability infoSupport for making data persistentyesyes
In-memory capabilities infoIs there an option to define some or all structures to be held in-memory only.nono
User concepts infoAccess controlRole-based access controlUsers with fine-grained authorization concept. No user groups or roles.
More information provided by the system vendor
CockroachDBTiDB
Specific characteristicsCockroachDB is a cloud-native, distributed SQL database architected for modern applications....
» more
TiDB is an open-source NewSQL database built by PingCAP. TiDB supports Hybrid Transactional...
» more
Competitive advantages- EFFORTLESS SCALE: Scale your applications, not operational complexity. CockroachDB...
» more
In the current database landscape, infrastructure engineers often have to use one...
» more
Typical application scenariosSystem of record (financial ledger, inventory management, transaction record), identity...
» more
TiDB is designed to support both OLTP and OLAP scenarios. You can use TiDB , the...
» more
Key customersComcast, DoorDash, Mythical Games, Norfolk Southern, LUSH, Bose, Shipt, Bitski, Five9,...
» more
Shopee (E-commerce) BookMyShow.com (E-commerce) Yiguo.com (E-commerce) JD Cloud &...
» more
Market metrics8K+ long-running clusters 25K+ CockroachDB self-hosted clusters 75K+ CockroachDB...
» more
25K+ GitHub Stars for TiDB, and 8K+ GitHub Stars for TiKV 1.6K+ members in TiDB Community...
» more
Licensing and pricing models- Apache 2.0 for core features released up to and including the 19.1 release - Time-limited...
» more
Open Source Apache 2.0 with either commercial licensing or fully-hosted DB-as-a-service...
» more

Related products and services

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

More resources
CockroachDBTiDB
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

PingCAP Announces TiDB Cloud Serverless Tier, Delivering ...
1 November 2022, GlobeNewswire

PingCAP’s Innovative TiDB Database – Techstrong.TV
20 October 2022, DevOps.com

Data management trends: Convergence and more money
19 January 2023, TechTarget

TiDB Cloud Launches in AWS Marketplace
10 February 2022, Datanami

PingCAP Named a Strong Performer among Translytical Data ...
6 December 2022, GlobeNewswire

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

SSBN/SSGN Missile Technician
BAE Systems, Washington, DC

Staff Software Engineer, Distributed System
Zilliz, San Francisco, CA

Senior Demand Generation Marketing Manager
PingCAP, Sunnyvale, CA

Staff Software Engineer - Cash Cards
Cash App, New York, NY

Web Application Architect III
Bloomberg BNA, Arlington, VA

jobs by Indeed



Share this page

Featured Products

Neo4j logo

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

MariaDB logo

SkySQL, the ultimate
MariaDB cloud, is here.

Get started with SkySQL today!

Vertica logo

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

The definitive guide for Cassandra

Imagine What You Could Do if Scalability Wasn‘t a Problem!
Download the Cassandra e-book for free!

Redis logo

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

Present your product here