-
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 the doc of BR batch create table #8786
Update the doc of BR batch create table #8786
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. |
Co-authored-by: TomShawn <[email protected]>
br/br-batch-create-table.md
Outdated
- v6.0 起的批量建表方案:批量建表功能采用了并发批量建表方案。从 v6.0 起,在默认情况下,BR 会以 128 张表为一批,并发创建多批表。采用该方案后,BR 每建一批表时,TiDB schema 版本只会变更一次。此方法极大地提高了建表速度。 | ||
- v6.0.0 前的串行建表方案: | ||
|
||
在使用 BR 执行数据恢复任务时,BR 会先在目标 TiDB 集群创建库和表后,再开始进行数据恢复。建表时,BR 会在调用 TiDB 内部接口后,使用 SQL 语句 `Create Table` 创建表。建表任务由 TiDB DDL owner 依次串行执行。在每张表被创建时,各会引起一次 DDL schema 版本的变更,而每次的 schema 版本的变更都需要同步到其他 TiDB DDL worker(含 BR)。因此,当需要创建的表的数量比较多时,串行建表方案会导致建表时间过长。 |
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.
在使用 BR 执行数据恢复任务时,BR 会先在目标 TiDB 集群创建库和表后,再开始进行数据恢复。建表时,BR 会在调用 TiDB 内部接口后,使用 SQL 语句 `Create Table` 创建表。建表任务由 TiDB DDL owner 依次串行执行。在每张表被创建时,各会引起一次 DDL schema 版本的变更,而每次的 schema 版本的变更都需要同步到其他 TiDB DDL worker(含 BR)。因此,当需要创建的表的数量比较多时,串行建表方案会导致建表时间过长。 | |
在使用 BR 执行数据恢复任务时,BR 会先在目标 TiDB 集群创建库和表后,再开始进行数据恢复。建表时,BR 会在调用 TiDB 内部接口后,类似使用 SQL 语句 `Create Table` 创建表。建表任务由 TiDB DDL owner 依次串行执行。在每张表被创建时,各会引起一次 DDL schema 版本的变更,而每次的 schema 版本的变更都需要同步到其他 TiDB DDL worker(含 BR)。因此,当需要创建的表的数量比较多时,串行建表方案会导致建表时间过长。 |
br/br-batch-create-table.md
Outdated
|
||
使用 Backup & Restore (BR) 执行数据恢复任务时,BR 会先在下游 TiDB 集群创建库和表,再进行数据恢复。TiDB v6.0 之前,在数据恢复阶段创建表时,BR 采用了[串行执行](#实现原理)的方案。然而,当需要恢复的数据中带有大量的表(约 50000 张)时,该方案会在创建表上消耗较多时间。 | ||
使用 Backup & Restore (BR) 执行数据恢复任务时,BR 会先在目标 TiDB 集群上创建库和表,然后再进行数据恢复。TiDB v6.0.0 之前,在数据恢复阶段创建表时,BR 采用了[串行执行](#实现原理)的方案。然而,当需要恢复的数据中带有大量的表(约 50000 张)时,该方案会在创建表上消耗较多时间。 |
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.
使用 Backup & Restore (BR) 执行数据恢复任务时,BR 会先在目标 TiDB 集群上创建库和表,然后再进行数据恢复。TiDB v6.0.0 之前,在数据恢复阶段创建表时,BR 采用了[串行执行](#实现原理)的方案。然而,当需要恢复的数据中带有大量的表(约 50000 张)时,该方案会在创建表上消耗较多时间。 | |
使用 Backup & Restore (BR) 执行数据恢复任务时,BR 会先在目标 TiDB 集群上创建库和表,然后再把已备份的数据恢复到表中。TiDB v6.0.0 之前,在数据恢复阶段创建表时,BR 采用了[串行执行](#实现原理)的方案。然而,当需要恢复的数据中带有大量的表(约 50000 张)时,该方案会在创建表上消耗较多时间。 |
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
Co-authored-by: TomShawn <[email protected]>
/remove-status LGT1 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 082c0d3
|
In response to a cherrypick label: new pull request created: #8822. |
What is changed, added or deleted? (Required)
Update descriptions about the BR batch create table feature.
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?