-
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
reference: add a description of max-index-length #2748
Conversation
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.
Rest LGTM
|
||
### `max-index-length` | ||
|
||
+ 用于设置新建索引的长度限制。 |
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.
should put the difference with MySQL's link here?
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.
+1, we can add a little more explainations here.
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.
MySQL does not have this item.
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.
nice work
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
|
||
+ 用于设置新建索引的长度限制。 | ||
+ 默认值:3072 | ||
+ 单位:byte,目前的合法值范围 [3072, 3072*4]。MySQL 和 TiDB v3.0.11 之前版本没有此配置项,不过都对新建索引的长度做了限制。MySQL 对此的长度限制为 3072,TiDB 在 v3.0.7 以及之前版本此值为 3072*4。为了与 MySQL 和 TiDB 之前版本的兼容,添加了此配置项。 |
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.
@zimulala v3.0.11 and v3.0.7, the versions seem inconsistent. If this is correct, I may wonder:
- what's the default length limit between v3.0.7 and v3.0.11.
- when this limit (default value) changed from 3072*4 to 3072.
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.
what's the default length limit between v3.0.7 and v3.0.11.
when this limit (default value) changed from 3072*4 to 3072.
3.0.11
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.
+ 单位:byte,目前的合法值范围 [3072, 3072*4]。MySQL 和 TiDB v3.0.11 之前版本没有此配置项,不过都对新建索引的长度做了限制。MySQL 对此的长度限制为 3072,TiDB 在 v3.0.7 以及之前版本此值为 3072*4。为了与 MySQL 和 TiDB 之前版本的兼容,添加了此配置项。 | |
+ 单位:byte | |
+ 目前的合法值范围 `[3072, 3072*4]`。MySQL 和 TiDB v3.0.11 之前版本(不包含 v3.0.11)没有此配置项,不过都对新建索引的长度做了限制。MySQL 对此的长度限制为 `3072`,TiDB 在 v3.0.7 以及之前版本该值为 `3072*4`,在 v3.0.7 之后的该值为 `3072`。为了与 MySQL 和 TiDB 之前版本的兼容,添加了此配置项。 |
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.
@TomShawn Done.
ed4f083
to
08bf0ad
Compare
6024f94
to
de6fff6
Compare
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.0 in PR #2764 |
Signed-off-by: sre-bot <sre-bot@pingcap.com>
cherry pick to release-3.1 in PR #2765 |
cherry pick to release-4.0 in PR #2766 |
What is changed, added or deleted? (Required)
Add a description of
max-index-length
.Related to pingcap/tidb#15012.
Which TiDB version(s) do your changes apply to? (Required)
If you select two or more versions from above, to trigger the bot to cherry-pick this PR to your desired release version branch(es), you must add corresponding labels such as needs-cherry-pick-4.0, needs-cherry-pick-3.1, needs-cherry-pick-3.0, and needs-cherry-pick-2.1.
What is the related PR or file link(s)?