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 |
|
|
||
| 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.
是 xxxRangeScan 和 其他扫表(Scan)操作进行比较。现在扫表操作总共有这些:
- IndexRangeScan
- IndexFullScan
- TableRangeScan
- TableFullScan
- TableRowIDScan
|
I just found that most of the changes can be copied from |
Co-authored-by: Ran <huangran@pingcap.com>
Co-authored-by: Ran <huangran@pingcap.com>
|
PTAL @ran-huang |
|
|
||
| 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.
是 xxxRangeScan 和 其他扫表(Scan)操作进行比较。现在扫表操作总共有这些:
- IndexRangeScan
- IndexFullScan
- TableRangeScan
- TableFullScan
- TableRowIDScan
Co-authored-by: Zhang Jian <zjsariel@gmail.com>
|
@ireneontheway To align with pingcap/docs-cn#3201, please also delete |
| --- | ||
| 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.
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.
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.
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 <40977455+yikeke@users.noreply.github.com>
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-4.0 in PR #3427 |
* cherry pick #3359 to release-4.0 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * Update query-execution-plan.md * Update query-execution-plan.md * Update query-execution-plan.md * Delete index-merge.md Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com> Co-authored-by: ireneontheway <ireneblueblue@163.com>
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?