Skip to content

Commit

Permalink
faq: Describe in what condition TiDB and RawKV can be used together (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jun 11, 2024
1 parent f63145b commit 9a272c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion faq/manage-cluster-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,10 @@ TiKV 的内存占用主要来自于 RocksDB 的 block-cache,默认为系统总

### TiDB 数据和 RawKV 数据可存储于同一个 TiKV 集群里吗?

不可以。TiDB 数据(或使用其他事务 API 生成的数据)依赖于一种特殊的键值格式,和 RawKV API 数据(或其他基于 RawKV 的服务生成的数据)并不兼容。
这取决于你使用的 TiDB 版本以及是否启用了 TiKV API V2 (即 [`storage.api-version = 2`](/tikv-configuration-file.md#api-version-从-v610-版本开始引入))。

- 如果你使用的是 v6.1.0 或之后版本的 TiDB,并且启用了 TiKV API V2,那么 TiDB 数据和 RawKV 数据可以共存于同一个 TiKV 集群。
- 否则,不可以将 TiDB 数据和 RawKV 数据存储于同一个 TiKV 集群中,因为 TiDB 数据(或使用事务 API 创建的数据)的 key 的格式与使用 RawKV API 创建的数据(或来自其他基于 RawKV 的服务生成的数据)不兼容。

## TiDB 测试

Expand Down

0 comments on commit 9a272c4

Please sign in to comment.