Skip to content
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

Merged
merged 5 commits into from
Apr 15, 2020

Conversation

zimulala
Copy link
Contributor

@zimulala zimulala commented Apr 14, 2020

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)

  • master (the latest development version)
  • v4.0 (TiDB 4.0 versions)
  • v3.1 (TiDB 3.1 versions)
  • v3.0 (TiDB 3.0 versions)
  • v2.1 (TiDB 2.1 versions)

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)?

  • This PR is translated from:
  • Other reference link(s):

@TomShawn
Copy link
Contributor

LGTM
@zimulala Please involve a technical review.

@TomShawn TomShawn added the translation/doing This PR’s assignee is translating this PR. label Apr 14, 2020
@TomShawn TomShawn self-assigned this Apr 14, 2020
@zimulala
Copy link
Contributor Author

PTAL @bb7133 @AilinKid

Copy link
Contributor

@AilinKid AilinKid left a 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`

+ 用于设置新建索引的长度限制。
Copy link
Contributor

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?

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work

Copy link
Contributor

@AilinKid AilinKid left a 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 之前版本的兼容,添加了此配置项。
Copy link
Contributor

@TomShawn TomShawn Apr 15, 2020

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.

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+ 单位: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 之前版本的兼容,添加了此配置项。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomShawn Done.

@zimulala zimulala merged commit 6050271 into pingcap:master Apr 15, 2020
@zimulala zimulala deleted the max-index-length branch April 15, 2020 10:06
sre-bot pushed a commit to sre-bot/docs-cn that referenced this pull request Apr 15, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented Apr 15, 2020

cherry pick to release-3.0 in PR #2764

sre-bot pushed a commit to sre-bot/docs-cn that referenced this pull request Apr 15, 2020
Signed-off-by: sre-bot <sre-bot@pingcap.com>
@sre-bot
Copy link
Contributor

sre-bot commented Apr 15, 2020

cherry pick to release-3.1 in PR #2765

@sre-bot
Copy link
Contributor

sre-bot commented Apr 15, 2020

cherry pick to release-4.0 in PR #2766

TomShawn pushed a commit that referenced this pull request Apr 15, 2020
TomShawn pushed a commit that referenced this pull request Apr 15, 2020
* cherry pick #2748 to release-3.1

Signed-off-by: sre-bot <sre-bot@pingcap.com>

* *: fix conflicts

Co-authored-by: Lynn <zimu_xia@126.com>
TomShawn pushed a commit that referenced this pull request Apr 15, 2020
* cherry pick #2748 to release-3.0

Signed-off-by: sre-bot <sre-bot@pingcap.com>

* *: fix conflicts

Co-authored-by: Lynn <zimu_xia@126.com>
@TomShawn TomShawn added translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. and removed translation/doing This PR’s assignee is translating this PR. labels Apr 16, 2020
rleungx pushed a commit to rleungx/docs-cn that referenced this pull request May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants