Skip to content

Commit d434717

Browse files
committed
Change SEL_ARG::MAX_SEL_ARGS to a user defined variable optimizer_max_sel_args
This allows a user to to change the default value of MAX_SEL_ARGS (16000) in the rare case where they neeed more generated SEL_ARGS (as part of the range optimizer)
1 parent 4e9322e commit d434717

9 files changed

+303
-242
lines changed

mysql-test/main/mysqld--help.result

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,10 @@ The following specify which files/extra groups are read (specified before remain
716716
--optimizer-max-sel-arg-weight=#
717717
The maximum weight of the SEL_ARG graph. Set to 0 for no
718718
limit
719+
--optimizer-max-sel-args=#
720+
The maximum number of SEL_ARG objects created when
721+
optimizing a range. If more objects would be needed, the
722+
range will not be used by the optimizer.
719723
--optimizer-prune-level=#
720724
Controls the heuristic(s) applied during query
721725
optimization to prune less-promising partial plans from
@@ -1682,6 +1686,7 @@ old-mode UTF8_IS_UTF8MB3
16821686
old-passwords FALSE
16831687
old-style-user-limits FALSE
16841688
optimizer-max-sel-arg-weight 32000
1689+
optimizer-max-sel-args 16000
16851690
optimizer-prune-level 1
16861691
optimizer-search-depth 62
16871692
optimizer-selectivity-sampling-limit 100

0 commit comments

Comments
 (0)