-
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
planner: use dynamic mode to access partitioning tables when no global stats #44262
Labels
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Comments
12 tasks
12 tasks
13 tasks
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
sig/planner
SIG: Planner
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
Support to use
set @@tidb_opt_fix_control = "44262:ON"
to control whether to use dynamic-mode to access partitioning tables without global-stats.Currently, if a partitioning table has no global stats, the optimizer can not use dynamic mode to access this table, which can cause some suboptimal plans.
This behavior is not flexible. It's better to allow the user to specify the optimizer to use dynamic mode without global stats.
See the example below, the optimizer can not use
IndexJoin
sincet2
has no global stats:The text was updated successfully, but these errors were encountered: