Relational Databases

CockroachDB vs TiDB

Compare CockroachDB and TiDB side-by-side. See feature differences and pricing in the Relational Databases category.

CockroachDB
CockroachDB

by Cockroach Labs

No reviews yet

Pricing: Usage-based, metered by the minute: Standard $0.092 per vCPU-hour (about $203/mo at 2 vCPU), Mission Critical $0.162 per vCPU-hour; self-hosted Enterprise by quote.

CockroachDB is a distributed SQL database, PostgreSQL compatible, run as a usage-billed cloud service or self-hosted, for apps that must stay up across regions.

14 /18 features Full profile
TiDB
TiDB

by PingCAP

No reviews yet

Pricing: Starter $0 a month plus usage past a free allowance; Essential from $400/mo and Premium from $1,800/mo compute, both Public Preview; Dedicated from $1,376/mo; self-managed open source.

TiDB is an open-source distributed SQL database compatible with MySQL, run as the TiDB Cloud managed service or self-managed, for apps that outgrow one server.

15 /18 features Full profile

Feature Comparison

Relational Databases features side-by-side

CockroachDB
CockroachDB 14/18 features
ACID transactions with row-level locking
Yes
Declarative table partitioning
Yes
Native JSON column type with indexing
Yes
Built-in full-text search indexes
Yes
Streaming physical replication to standbys
Yes
Logical replication of selected tables
Yes
Synchronous multi-replica commit
Yes
Automatic failover to a standby
Yes
Point-in-time recovery from archived logs
Yes
Online schema changes without table locks
Yes
Columnstore indexes for analytics
No
Row-level security policies
Yes
Transparent data encryption at rest
Yes
Stored procedures in multiple languages
No
Extension or plugin architecture
No
Query store or plan history
Yes
In-place major version upgrade tooling
Yes
Open source core under a permissive license
No
No reviews yet
TiDB
TiDB 15/18 features
ACID transactions with row-level locking
Yes
Declarative table partitioning
Yes
Native JSON column type with indexing
Yes
Built-in full-text search indexes
Yes
Streaming physical replication to standbys
Yes
Logical replication of selected tables
Yes
Synchronous multi-replica commit
Yes
Automatic failover to a standby
Yes
Point-in-time recovery from archived logs
Yes
Online schema changes without table locks
Yes
Columnstore indexes for analytics
Yes
Row-level security policies
No
Transparent data encryption at rest
Yes
Stored procedures in multiple languages
No
Extension or plugin architecture
No
Query store or plan history
Yes
In-place major version upgrade tooling
Yes
Open source core under a permissive license
Yes
No reviews yet

Pricing

CockroachDB

Usage-based, metered by the minute: Standard $0.092 per vCPU-hour (about $203/mo at 2 vCPU), Mission Critical $0.162 per vCPU-hour; self-hosted Enterprise by quote.

TiDB

Starter $0 a month plus usage past a free allowance; Essential from $400/mo and Premium from $1,800/mo compute, both Public Preview; Dedicated from $1,376/mo; self-managed open source.

Explore Each Product

Looking for more options?

Browse all Relational Databases