-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update a TiDB FAQ about supported storage engine #9490
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
faq/tidb-faq.md
Outdated
@@ -49,7 +49,30 @@ TiDB 事务模型灵感源自 Google Percolator 模型,主体是一个两阶 | |||
|
|||
#### 1.1.9 TiDB 是否支持其他存储引擎? | |||
|
|||
是的,除了 TiKV 之外,TiDB 还支持一些流行的单机存储引擎,比如 GolevelDB、RocksDB、BoltDB 等。如果一个存储引擎是支持事务的 KV 引擎,并且能提供一个满足 TiDB 接口要求的 Client,即可接入 TiDB。 | |||
是的,除了 TiKV 之外,TiDB 还支持一些单机存储引擎,比如 MockTiKV 和 UniStore。注意,未来 TiDB 版本可能不再支持 MockTiKV。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 这句话要不要保留呢?
如果一个存储引擎是支持事务的 KV 引擎,并且能提供一个满足 TiDB 接口要求的 Client,即可接入 TiDB。
未来 TiDB 版本可能不再支持 MockTiKV
这里的未来
能否稍微具体一下?除了 TiKV 之外
处是否要提 TiFlash,即改为除了 TiKV 和 TiFlash 之外
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果一个存储引擎是支持事务的 KV 引擎,并且能提供一个满足 TiDB 接口要求的 Client,即可接入 TiDB
... 这个是历史问题,最初的 tidb 代码很简单时,只要随便弄一个 kv 引擎,实现 Client 接口就可以接入 TiDB 了... 等后来 tidb 越来越复杂,需要实现复杂的事务协议,并且实现 coprocessor 的相关接口,这已经不是随便拿一个 kv 引擎很容易能实现的了- 我们做 mocktikv 主要是用来跑测试用。再做后来 unistore 是为了更好的性能以及一些实验性特性的验证... 等 unistore 成熟后就拿它当默认的跑测试用。当前已经没有在 MockTiKV 上面做任何修改了,MockTiKV 已经属于废弃状态... 不过还没有做清理,并且 tidb 的 -store=mocktikv 还在,
未来
如果清理掉代码,这个就不支持了 - TiFlash 其实不算一个完整的实现,它只实现了读,没有实现写。TiDB 是不能直接写入 TiFlash 的,不过可以读... 也就是 TiFlash 只实现了
Client
接口其中 coprocessor 一部分的 API,但是没实现事务部分的 API
Co-authored-by: Lilian Lee <lilin@pingcap.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 28367cb
|
In response to a cherrypick label: new pull request created: #9491. |
In response to a cherrypick label: new pull request created: #9492. |
What is changed, added or deleted? (Required)
Update a TiDB FAQ
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?