-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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/variable: turn off TiDBEnablePseudoForOutdatedStats by default #36797
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
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.
I think it needs some benchmark to verify...
In CE Benchmark on stale statistics, when stats healthy is 50%, using outdated stats(tidb_enable_pseudo_for_outdated_stats = off) has a smaller q-error then using pseudo stats(tidb_enable_pseudo_for_outdated_stats = on) when doing cardinality estimation benchmark on IMDB + JOB. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 849128c
|
@pingcap/tidb-configuration-reviewer PTAL /hold |
/unhold |
/hold @xuyifangreeneyes Please fix test. |
Found a unreasonable behavior when
When |
/unhold |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 70abc97
|
TiDB MergeCI notify✅ Well Done! New fixed [1] after this pr merged.
|
It is solved by #37444 |
What problem does this PR solve?
Issue Number: ref #27601
Problem Summary:
What is changed and how it works?
Change the default value of
TiDBEnablePseudoForOutdatedStats
from true to false. After the pr, by default, when table stats are outdated, we still use the outdated stats rather than pseudo stats, which is reasonable in most cases.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.