-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
config: Add index limit configuration #21192
Conversation
/run-unit-test |
/run-test |
LGTM |
PTAL @marsishandsome |
PTAL @wjhuang2016, @AilinKid |
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
@@ -644,6 +649,7 @@ var defaultConf = Config{ | |||
EnableBatchDML: false, | |||
CheckMb4ValueInUTF8: true, | |||
MaxIndexLength: 3072, | |||
IndexLimit: 64, |
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.
better use DefIndexLimit
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.
We use DefIndexLimit
as a constant. I think it is ok to use IndexLimit
here, as other configuration items do not start with Def
@AilinKid
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
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@b41sh merge failed. |
/run-all-tests |
/run-unit-test |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
What problem does this PR solve?
Problem Summary:
What is changed and how it works?
What's Changed:
In order to be compatible with MySQL, we set up a table to have up to 64 indexes in PR 20353. But in some cases, we need more indexes, such as some test cases of TiSpark 1730.
In this PR, we add a configuration item that allows users to specify the index limit themselves.
How it Works:
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Release note