add system variable 'tidb_enable_clustered_index' for v5.0#4385
Merged
Conversation
Member
Author
|
@zhangjinpeng1987 PTAL |
TomShawn
reviewed
Aug 31, 2020
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
TomShawn
reviewed
Aug 31, 2020
| - 这个变量用于控制是否开启 clustered index 特性。 | ||
| - 该特性只适用于新创建的表,对于已经创建的旧表不会有影响。 | ||
| - 该特性只适用于主键为单列非 INT 类型的表和主键为多列的表,对于无主键的表和主键是单列 INT 类型的表不会有影响。 | ||
| - 特性启用以后,row value 会直接存储在主键上,而不再是存储在系统内部分配的 row key 上,然后用额外创建的主键索引指向 row key。 |
Contributor
There was a problem hiding this comment.
Suggested change
| - 特性启用以后,row value 会直接存储在主键上,而不再是存储在系统内部分配的 row key 上,然后用额外创建的主键索引指向 row key。 | |
| - 特性启用以后,行值会直接存储在主键上,而不再存储在系统内部分配的 row key 上(再用额外创建的主键索引指向该 row key)。 |
Member
Author
There was a problem hiding this comment.
'行值' is used for different meanings in the doc.
| 对性能的影响主要体现在以下几个方面: | ||
| - 插入的时候会减少一个 index key 的写入。 | ||
| - 使用主键做为等值条件查询的时候,会节省一次读取请求。 | ||
| - 使用单列主键做为范围条件条件查询的时候,可以节省多次读取请求。 |
Contributor
There was a problem hiding this comment.
Suggested change
| - 使用单列主键做为范围条件条件查询的时候,可以节省多次读取请求。 | |
| - 使用单列主键做为范围条件查询的时候,可以节省多次读取请求。 |
TomShawn
reviewed
Aug 31, 2020
| - 这个变量用于控制是否开启 Clustered Index 特性。 | ||
| - 该特性只适用于新创建的表,对于已经创建的旧表不会有影响。 | ||
| - 该特性只适用于主键为单列非 INT 类型的表和主键为多列的表。对于无主键的表和主键是单列 INT 类型的表不会有影响。 | ||
| - 特性启用以后,row value 会直接存储在主键上,而不再是存储在系统内部分配的 row key 上,并用额外创建的主键索引指向 row key。 |
Contributor
There was a problem hiding this comment.
- row value 和 row key 没有对应的中文表达吗?如果非术语,建议使用中文。
- 如果
并用额外创建的主键索引指向 row key是被不再是否定的一部分,这么写读者可能会认为不再是存储在系统内部分配的 row key 上与并用额外创建的主键索引指向 row key是并列关系。
Member
Author
|
@TomShawn PTAL |
TomShawn
reviewed
Sep 1, 2020
TomShawn
reviewed
Sep 1, 2020
TomShawn
reviewed
Sep 1, 2020
Contributor
|
Rest LGTM |
Member
Author
|
@TomShawn PTAL |
ti-srebot
approved these changes
Sep 3, 2020
9 tasks
Contributor
|
/label translation/done |
Contributor
|
/unlabel translation/doing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is changed, added or deleted? (Required)
add system variable 'tidb_enable_clustered_index' for v5.0
Which TiDB version(s) do your changes apply to? (Required)
Do your changes match any of the following descriptions?