Comparison

CockroachDB vs TiDB

On the evidence we track, CockroachDB leads this comparison with a composite score of 65/100. Scores are only directly comparable because these tools share a category; the full breakdown and every source is below.

Machine formatsMarkdownJSONGraphQLMarkdown is open. JSON and GraphQL need a free key.
★CockroachDB65
TiDB49
Score
vioscaleAI score
CockroachDB65 / 100medium · 65%
TiDB49 / 100low · 19%
Pricing
Free tier
CockroachDB✓
TiDB✓
Model
CockroachDBfreemium
Price level
CockroachDBlow
TiDBfree
Starting price
CockroachDB$0.06
TiDB–
Transparent
CockroachDB✓
TiDB✗
Integrations
Count
CockroachDB6
TiDB26
Security
Disclosure policy
CockroachDB✓
TiDB–
Gdpr
CockroachDB✓
TiDB✓
Hipaa
CockroachDB✓
TiDB–
Iso27001
CockroachDB✓
TiDB–
Pci
CockroachDB✓
TiDB✓
Scorecard
CockroachDB5.1
TiDB–
Soc2
CockroachDB✓
TiDB✓
Trust center
Reliability
Sla pct
CockroachDB99.99
TiDB99.99
Status page
CockroachDB–
TiDB✓
Adoption
Dependent repos
CockroachDB235
TiDB–
Github stars
CockroachDB32,549
TiDB–
Activity
Commits last 30d
CockroachDB11
TiDB–
Language
Primary
CockroachDBGo
TiDB–
Market
Availability
Content
Faq
CockroachDB6 items

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

Leader

A cloud-native SQL database that scales automatically across machines without manual sharding, supporting ACID transactions and multi-region deployments. It survives node, zone, and regional failures with minimal disruption and is compatible with PostgreSQL applications.

Independently observed

TiDB

An open-source, distributed SQL database that provides ACID transactions with automatic scaling from zero to peak load. It maintains MySQL protocol compatibility and supports both analytical and transactional workloads on unified data.

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

Leader
from $0.06/vCPU-hourUsage-basedFree tier30-day trial

From $0.057/vCPU-hr. Free 30-day trial with $400 credit.

  • StandardFrom $0.057/vCPU-hr, 99.99% SLA
    • 99.99% availability SLA
    • Single- or multi-region on AWS and GCP
    • Row-level security
    • Column-level encryption
    • Private connectivity
    • +2 more
  • Mission Critical$0.162/vCPU-hr, 99.999% SLA
    • 99.999% availability SLA with multi-region
    • Egress controls
    • CMEK
    • PCI DSS & HIPAA compliance
    • All add-ons available
    • +1 more
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.

In common (9)
  • Datadog
  • New Relic
  • Terraform
  • Vercel
  • AWS
  • Azure
  • Kubernetes
  • SQLAlchemy
  • Google Cloud

CockroachDB

Leader
16 total - 7 not shared
  • Splunk
  • Dynatrace
  • HashiCorp
  • pgvector
  • GCP
  • MOLT (Migration Tool)
  • PostgreSQL drivers
Independently observed

TiDB

30 total - 21 not shared
  • Cursor
  • JDBC
  • mysql-connector-python
  • MySQL
  • Apache Spark
  • Kafka
  • Confluent
  • Airbyte
  • AWS AppFlow
  • dbt
  • Superset
  • CloudFormation
  • Alibaba Cloud
  • AWS Lambda
  • Netlify
  • Hibernate
  • Prisma
  • PyMySQL
  • Zapier
  • n8n
  • Model Context Protocol
Independently observed
Still deciding?

CockroachDB or TiDB: which one depends on you

A composite score cannot know your constraints. Describe them and both get re-weighted against what you actually need, with the evidence behind every position.

Free to run, no account needed to start. How the evaluation works

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