Skip to content
DevUtils Online

Databases

ClickHouse vs tidb

ClickHouse leads by 1.3 · narrow

A · leads

ClickHouse

92.9

50,970 stars · Apache-2.0

B

tidb

91.6

40,739 stars · Apache-2.0

ClickHouse versus tidb is a Databases comparison assembled from public repository metrics, the license on file, and whether each product can be self-hosted. ClickHouse is written mainly in C++; tidb is written mainly in Go. The composite score is 92.9 for ClickHouse and 91.6 for tidb.

ClickHouse has 50,970 GitHub stars to tidb's 40,739, a gap of 10,231 (1.25×). Forks are 9,275 for ClickHouse and 6,297 for tidb. On the log scale used inside this pair, adoption is 100 versus 98, and the fork community is 100 versus 96.

Push history: ClickHouse 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 9,191 for ClickHouse (0.180 per star) and 7,730 for tidb (0.190 per star). Issue-health scores are 34 and 34; activity scores are 100 and 100.

Both ClickHouse and tidb are listed as Apache-2.0. 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. The license score is therefore level at 96 versus 96, and the decision moves to adoption, activity, and hosting. This is a procurement signal, not legal advice.

In Databases, both ClickHouse (50,970 stars) and tidb (40,739 stars) are marked self-hostable. Deploy scores are 100 and 100. Running either one means you own upgrades, backups, and the license duties that follow a modified copy. Pricing labels on file: ClickHouse is open source, tidb is open source.

ClickHouse is ahead on every scored dimension that is not level. Level dimensions: recent activity, issue health, license flexibility, self-hosting. The widest gap is fork community at 4 points (100 vs 96), and the tightest is self-hosting at 0 points (100 vs 100).

ClickHouse finishes ahead at 92.9 against tidb at 91.6, a 1.3 point narrow 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.

ClickHouse versus tidb metrics
Signal ClickHouse tidb
GitHub stars 50,970 40,739
Forks 9,275 6,297
Open issues 9,191 7,730
Adoption 100 98
Activity 100 100
Community 100 96
Issue health 34 34
License 96 96
Self-hosting 100 100
Composite 92.9 91.6

ClickHouse

ClickHouse is a columnar OLAP database built for fast analytical queries on large event tables. It is common as the store behind product analytics and observability.

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, ClickHouse or tidb?

ClickHouse has more GitHub stars: 50,970 versus 40,739 for tidb. The gap is 10,231 stars.

Which was updated more recently, ClickHouse or tidb?

Both were last pushed on 17 November 2026.

Can I self-host both ClickHouse and tidb?

Yes. This catalog marks both ClickHouse and tidb as self-hostable. Confirm each project's deploy docs before you plan a migration.

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

ClickHouse 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. 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 ClickHouse vs tidb score?

ClickHouse scores 92.9 and tidb scores 91.6. This page calls that a narrow lead for ClickHouse.

Related comparisons