Skip to content
DevUtils Online

Databases

cockroach vs tidb

tidb leads by 16.2 · decisive

A

cockroach

76.7

32,622 stars · license n/a

B · leads

tidb

92.9

40,739 stars · Apache-2.0

cockroach versus tidb is a Databases comparison assembled from public repository metrics, the license on file, and whether each product can be self-hosted. Both projects are written mainly in Go. The composite score is 76.7 for cockroach and 92.9 for tidb.

tidb has 40,739 GitHub stars to cockroach's 32,622, a gap of 8,117 (1.25×). Forks are 4,236 for cockroach and 6,297 for tidb. On the log scale used inside this pair, adoption is 98 versus 100, and the fork community is 96 versus 100.

Push history: cockroach was last pushed on 11 November 2026 (6 days ago), and tidb was last pushed on 17 November 2026 (0 days ago). Open issues stand at 8,042 for cockroach (0.247 per star) and 7,730 for tidb (0.190 per star). Issue-health scores are 34 and 34; activity scores are 92 and 100.

cockroach is listed as no SPDX license on file, which this catalog treats as no clear license grant in the data stored here. Public code without a license is not free to use. tidb is listed as Apache-2.0, which this catalog treats as a permissive grant. A company can usually ship it inside a commercial product and keep its own application code private, provided it keeps the copyright notice. License scores in this pair are 30 for cockroach and 96 for tidb. This is a procurement signal, not legal advice.

Only tidb is marked self-hostable here (40,739 stars, deploy score 100). cockroach is not (32,622 stars, deploy score 35). For a team with a data-residency rule, that gap can outweigh a star-count lead. Pricing labels on file: cockroach is unpriced in this catalog, tidb is open source.

tidb is ahead on every scored dimension that is not level. Level dimensions: issue health. The widest gap is license flexibility at 66 points (30 vs 96), and the tightest is issue health at 0 points (34 vs 34).

tidb finishes ahead at 92.9 against cockroach at 76.7, a 16.2 point decisive margin under the published weights.

Scores are computed inside this pair only. Method and weights.

Where they separate

The numbers

Bars are scaled within the row. Higher is stronger. Open issues are a raw count, so that row has no bar.

cockroach versus tidb metrics
Signal cockroach tidb
GitHub stars 32,622 40,739
Forks 4,236 6,297
Open issues 8,042 7,730
Adoption 98 100
Activity 92 100
Community 96 100
Issue health 34 34
License 30 96
Self-hosting 35 100
Composite 76.7 92.9

cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.

Project site · GitHub · Full profile

tidb

TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.

Project site · GitHub · Full profile

Questions this page answers

Which has more GitHub stars, cockroach or tidb?

tidb has more GitHub stars: 40,739 versus 32,622 for cockroach. The gap is 8,117 stars.

Which was updated more recently, cockroach or tidb?

tidb was pushed more recently: 17 November 2026 versus 11 November 2026 for cockroach. That is 6 days apart.

Can I self-host both cockroach and tidb?

Only tidb is marked self-hostable. cockroach is not.

Which license is easier to embed in a commercial product, cockroach or tidb?

cockroach is listed as no SPDX license on file, which this catalog treats as no clear license grant in the data stored here. Public code without a license is not free to use. tidb is listed as Apache-2.0, which this catalog treats as a permissive grant. A company can usually ship it inside a commercial product and keep its own application code private, provided it keeps the copyright notice. Read both grants before you embed either codebase in a hosted product. This is not legal advice.

Who wins the cockroach vs tidb score?

tidb scores 92.9 and cockroach scores 76.7. This page calls that a decisive lead for tidb.

Related comparisons