1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-34993, part2: backport optimizer_adjust_secondary_key_costs

...and make the fix for MDEV-34993 switchable. It is enabled by default
and controlled with @optimizer_adjust_secondary_key_costs=fix_card_multiplier
This commit is contained in:
Sergei Petrunia
2024-09-24 10:23:34 +03:00
parent 8166a5d33d
commit 1cda4726ca
9 changed files with 175 additions and 1 deletions

View File

@@ -682,6 +682,12 @@ The following specify which files/extra groups are read (specified before remain
max_connections*5 or max_connections + table_cache*2
(whichever is larger) number of file descriptors
(Automatically configured unless set explicitly)
--optimizer-adjust-secondary-key-costs=name
A bit field with the following values:
fix_card_multiplier = Fix the computation in
selectivity_for_indexes. selectivity_multiplier. This
variable will be deleted in MariaDB 11.0 as it is not
needed with the new 11.0 optimizer.
--optimizer-max-sel-arg-weight=#
The maximum weight of the SEL_ARG graph. Set to 0 for no
limit
@@ -1642,6 +1648,7 @@ old-alter-table DEFAULT
old-mode
old-passwords FALSE
old-style-user-limits FALSE
optimizer-adjust-secondary-key-costs fix_card_multiplier
optimizer-max-sel-arg-weight 32000
optimizer-prune-level 1
optimizer-search-depth 62