A
surrealdb
81.8
33,315 stars · license n/a
Databases
tidb leads by 11.1 · clear
A
81.8
33,315 stars · license n/a
B · leads
92.9
40,739 stars · Apache-2.0
surrealdb versus tidb is a Databases comparison assembled from public repository metrics, the license on file, and whether each product can be self-hosted. surrealdb is written mainly in Rust; tidb is written mainly in Go. The composite score is 81.8 for surrealdb and 92.9 for tidb.
tidb has 40,739 GitHub stars to surrealdb's 33,315, a gap of 7,424 (1.22×). Forks are 1,408 for surrealdb and 6,297 for tidb. On the log scale used inside this pair, adoption is 98 versus 100, and the fork community is 83 versus 100.
Push history: surrealdb was last pushed on 17 November 2026 (0 days ago), and tidb was last pushed on 17 November 2026 (0 days ago). Open issues stand at 443 for surrealdb (0.013 per star) and 7,730 for tidb (0.190 per star). Issue-health scores are 84 and 34; activity scores are 100 and 100.
surrealdb 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 surrealdb 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). surrealdb is not (33,315 stars, deploy score 35). For a team with a data-residency rule, that gap can outweigh a star-count lead. Pricing labels on file: surrealdb is unpriced in this catalog, tidb is open source.
The lead is split. surrealdb is furthest ahead on issue health (84 to 34), while tidb is furthest ahead on license flexibility (96 to 30). Choose the dimension a rollout cannot compromise on.
tidb finishes ahead at 92.9 against surrealdb at 81.8, a 11.1 point clear margin under the published weights.
Scores are computed inside this pair only. Method and weights.
Bars are scaled within the row. Higher is stronger. Open issues are a raw count, so that row has no bar.
| Signal | surrealdb | tidb |
|---|---|---|
| GitHub stars | 33,315 | 40,739 |
| Forks | 1,408 | 6,297 |
| Open issues | 443 | 7,730 |
| Adoption | 98 | 100 |
| Activity | 100 | 100 |
| Community | 83 | 100 |
| Issue health | 84 | 34 |
| License | 30 | 96 |
| Self-hosting | 35 | 100 |
| Composite | 81.8 | 92.9 |
A scalable, distributed, collaborative, document-graph database, for the realtime web
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.
tidb has more GitHub stars: 40,739 versus 33,315 for surrealdb. The gap is 7,424 stars.
Both were last pushed on 17 November 2026.
Only tidb is marked self-hostable. surrealdb is not.
surrealdb 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.
tidb scores 92.9 and surrealdb scores 81.8. This page calls that a clear lead for tidb.