TiDB vs TiKV
TiDB: MySQL-compatible distributed SQL with a row store for OLTP and a columnar replica for real-time analytics. TiKV: CNCF-graduated, Raft-replicated transactional key-value store in Rust; the storage layer of TiDB.
key differences
- TiDB is primarily a relational database; TiKV is key-value.
- Only TiDB has joins, secondary indexes, vector search, json, columnar storage.
- TiDB has a serverless option; TiKV does not.
choose tidb for
- +Replacing hand-sharded MySQL
- +HTAP dashboards on live transactional data
- +SaaS platforms with very large tenant counts
- +Payment and order systems at internet scale
best at · OLTP, HTAP, Real-time analytics
choose tikv for
- +Storage layer for distributed SQL (TiDB)
- +Metadata for distributed file systems (JuiceFS)
- +Large-scale transactional key-value services
- +Redis-protocol or custom data layers needing strong consistency
best at · OLTP, Metadata, HTAP
TiDB vs TiKV: FAQ
What is the difference between TiDB and TiKV?
TiDB: MySQL-compatible distributed SQL with a row store for OLTP and a columnar replica for real-time analytics. TiKV: CNCF-graduated, Raft-replicated transactional key-value store in Rust; the storage layer of TiDB. TiDB is primarily a relational database; TiKV is key-value. Only TiDB has joins, secondary indexes, vector search, json, columnar storage. TiDB has a serverless option; TiKV does not.
When should I choose TiDB over TiKV?
Choose TiDB for replacing hand-sharded MySQL, HTAP dashboards on live transactional data and SaaS platforms with very large tenant counts. Choose TiKV for storage layer for distributed SQL (TiDB), metadata for distributed file systems (JuiceFS) and large-scale transactional key-value services.
Is TiDB or TiKV more popular?
TiDB ranks #56 on the WhichDB Score (35.9/100) and TiKV ranks #148 (20.8/100). Popularity is not fit: check the requirements that matter for your project.
Are TiDB and TiKV open source?
Yes. TiDB is open source. License: Apache License 2.0. Yes. TiKV is open source. License: Apache License 2.0.