-
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
sessionctx: add variable tidb_analyze_version #21515
Conversation
I think there could be some confusion with |
The following stuff will be added to the docs for clearer explanation: The |
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
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
@@ -601,6 +604,7 @@ const ( | |||
DefTiDBEnableAsyncCommit = false | |||
DefTiDBEnable1PC = false | |||
DefTiDBGuaranteeExternalConsistency = false | |||
DefTiDBAnalyzeVersion = 1 |
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.
Does this mean we'll use old stats by default and change it manually to enable refactored stats?
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.
Yeah, according to the PM, it should be turned to the newer one after we have fully tested it.
/merge |
/run-all-tests |
What problem does this PR solve?
Problem Summary:
Add a variable
tidb_analyze_version
to control how we collect and use the analyzed statistics.Check List
Tests
Release note