Comparison

CockroachDB vs TiDB

No clear leader: CockroachDB (63.3) and TiDB (59.5) are within the 5-point margin; treat as a tie. The attribute-by-attribute breakdown below, with a source and date on every value, is the honest way to compare them.

Machine formatsJSONMarkdownGraphQLor send Accept: application/json
CockroachDB63
TiDB60
Score
Vioscale score
CockroachDB63 / 100medium · 66%
TiDB60 / 100medium · 61%
Pricing
Free tier
CockroachDB
TiDB
Model
CockroachDBcommercial
Price level
CockroachDBlow
TiDBlow
Transparent
CockroachDB
TiDB
Integrations
Count
CockroachDB8
TiDB4
Security
Disclosure policy
CockroachDB
TiDB
Gdpr
CockroachDB
TiDB
Hipaa
CockroachDB
TiDB
Iso27001
CockroachDB
TiDB
Pci
CockroachDB
TiDB
Scorecard
CockroachDB5.1
TiDB
Soc2
CockroachDB
TiDB
Reliability
Sla pct
CockroachDB99.999
TiDB99.99
Status page
CockroachDB
TiDB
Adoption
Dependent repos
CockroachDB235
TiDB
Github stars
CockroachDB32,415
TiDB
Activity
Commits last 30d
CockroachDB15
TiDB
Language
Primary
CockroachDBGo
TiDB
Market
Availability
TiDB

Capabilities

Feature-by-feature on the axes that matter for relational databases. “-” means undocumented, not absent.

Core
SQL model
CockroachDBFull SQL
TiDBFull SQL
Transactions
ACID transactions
CockroachDBFull
TiDBFull
Highest isolation level
CockroachDBSerializable
TiDB-
Consistency
Consistency
CockroachDBStrong
TiDB-
Scale
Horizontal scale
CockroachDBNatively distributed
TiDBNatively distributed
Replication
Replication
CockroachDBConsensus (Raft/Paxos)
TiDB-
Availability
Automatic failover / HA
CockroachDB
TiDB-
Deployment
Deployment
CockroachDBManaged
TiDB-
Serverless / scale-to-zero
CockroachDB
TiDB-
Compatibility
Wire compatibility
CockroachDBPostgres protocol
TiDBMySQL protocol
Extensibility
Extensions / plugins / UDFs
CockroachDB
TiDB-
Licensing
Licence class
CockroachDBSource-available (BSL/SSPL)
TiDBPermissive OSS
Data types
JSON / document support
CockroachDB
TiDB-
Geo / spatial
CockroachDBNone
TiDB-

What each one is

The product in its own terms, so the numbers below have context.

CockroachDB

CockroachDB is a PostgreSQL-compatible distributed SQL database designed for global applications requiring high availability, automatic scaling, and strong consistency across data centers. It eliminates downtime, simplifies operations, and scales seamlessly without manual intervention.

Independently observed

TiDB

An open-source distributed SQL database trusted by innovators to power transactional, AI, and other modern applications.

Independently observed

Pricing

List pricing as published by each vendor, with the date we read it. Always verify at the source before you buy.

CockroachDB

HybridFree tier30-day trial

Free tier available with $400 in free credits. Provisioned capacity and on-demand pricing models for production workloads.

  • BasicFree
as of verify ↗

TiDB

HybridFree tier
  • TiDB Cloud StarterFree
  • TiDB Cloud DedicatedContact sales
as of verify ↗

Platform & deployment

Where each product runs and how it can be hosted. A dash means undocumented, not unsupported.

Platforms
Web
CockroachDB
TiDB
CLI
CockroachDB
TiDB
Deployment
Cloud / SaaS
CockroachDB
TiDB
Self-hosted
CockroachDB
TiDB
On-premise
CockroachDB
TiDB
Hybrid
CockroachDB
TiDB

Integrations

What each product connects to. Counts come from the vendor's own integration directory where one exists.

CockroachDB

15 total
  • Datadog
  • Splunk
  • Dynatrace
  • New Relic
  • Terraform
  • Vercel
  • HashiCorp
  • pgvector
  • AWS
  • GCP
  • Azure
  • Kubernetes
  • MOLT (Migration Tool)
  • PostgreSQL drivers
  • SQLAlchemy
Independently observed

TiDB

4 total
  • Cursor
  • JDBC
  • mysql-connector-python
  • MySQL
Independently observed

Comparison generated from independently-sourced facts. Every value links to its source and retrieval date. See the method.