reference: add a description of max-index-length#2748
Conversation
|
LGTM |
|
|
||
| ### `max-index-length` | ||
|
|
||
| + 用于设置新建索引的长度限制。 |
There was a problem hiding this comment.
should put the difference with MySQL's link here?
There was a problem hiding this comment.
+1, we can add a little more explainations here.
There was a problem hiding this comment.
MySQL does not have this item.
|
|
||
| + 用于设置新建索引的长度限制。 | ||
| + 默认值: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.
@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.
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.
| + 单位: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 之前版本的兼容,添加了此配置项。 |
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)?