-
Notifications
You must be signed in to change notification settings - Fork 682
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 query-execution-plan.md #3359
Update query-execution-plan.md #3359
Conversation
/label size/medium,special-week,needs-cherry-pick-4.0,translation/from-docs-cn |
PTAL @yikeke |
/cc yikeke |
/cc Reminiscent |
/cc zz-jason |
query-execution-plan.md
Outdated
|
||
In the IndexMerge access mode, the optimizer can use multiple indexes in a table, and combine the returned results of each index to generate the execution plan of the latter IndexMerge in the figure above. Here the `IndexMerge_16` operator has three child nodes, among which `IndexRangeScan_13` and `IndexRangeScan_14` get all the `RowID`s that meet the conditions based on the result of range scan, and then the `TableRowIDScan_15` operator accurately reads all the data that meet the conditions according to these `RowID`s. | ||
|
||
For the table scan that is performed by range such as indexRangeScan/TableRangeScan , the operator info column in the explain table has more information about the range of the scanned data than other scan operations. In the above example, the `range:(1,+inf]` in the IndexRangeScan operator indicates that the operator scans the data from 1 to positive infinity. |
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.
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.
是 xxxRangeScan 和 其他扫表(Scan)操作进行比较。现在扫表操作总共有这些:
- IndexRangeScan
- IndexFullScan
- TableRangeScan
- TableFullScan
- TableRowIDScan
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.
@ireneontheway 请对应修改英文,谢谢~
I just found that most of the changes can be copied from |
Co-authored-by: Ran <[email protected]>
Co-authored-by: Ran <[email protected]>
PTAL @ran-huang |
query-execution-plan.md
Outdated
|
||
In the IndexMerge access mode, the optimizer can use multiple indexes in a table, and combine the returned results of each index to generate the execution plan of the latter IndexMerge in the figure above. Here the `IndexMerge_16` operator has three child nodes, among which `IndexRangeScan_13` and `IndexRangeScan_14` get all the `RowID`s that meet the conditions based on the result of range scan, and then the `TableRowIDScan_15` operator accurately reads all the data that meet the conditions according to these `RowID`s. | ||
|
||
For the table scan that is performed by range such as indexRangeScan/TableRangeScan , the operator info column in the explain table has more information about the range of the scanned data than other scan operations. In the above example, the `range:(1,+inf]` in the IndexRangeScan operator indicates that the operator scans the data from 1 to positive infinity. |
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.
是 xxxRangeScan 和 其他扫表(Scan)操作进行比较。现在扫表操作总共有这些:
- IndexRangeScan
- IndexFullScan
- TableRangeScan
- TableFullScan
- TableRowIDScan
Co-authored-by: Zhang Jian <[email protected]>
@ireneontheway To align with pingcap/docs-cn#3201, please also delete |
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
--- | ||
title: Access Tables Using `IndexMerge` | ||
summary: Learn how to access tables using the `IndexMerge` query execution plan. | ||
aliases: ['/docs/dev/index-merge/','/docs/dev/reference/performance/index-merge/'] |
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.
Please add the following aliases into https://github.com/pingcap/docs/pull/3359/files#diff-7958dda55af6cba3f29e9e06ddd9d583R4:
'/docs/dev/index-merge/','/docs/dev/reference/performance/index-merge/','/tidb/dev/index-merge' @ireneontheway
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.
Please note: When we delete a file, in most cases, we need to add an alias to another document to redirect the old URLs. @ireneontheway @ran-huang
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.
To fix pingcap/docs-cn#3201, please help add the missing aliases to query-execution-plan.md in the docs-cn repo. @ireneontheway
Co-authored-by: Keke Yi <[email protected]>
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
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
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-4.0 in PR #3427 |
* cherry pick #3359 to release-4.0 Signed-off-by: ti-srebot <[email protected]> * Update query-execution-plan.md * Update query-execution-plan.md * Update query-execution-plan.md * Delete index-merge.md Co-authored-by: ireneontheway <[email protected]> Co-authored-by: ireneontheway <[email protected]>
What is changed, added or deleted? (Required)
Update the documentation for query-execution-plan.md
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?