mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +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:
@ -266,6 +266,11 @@
|
||||
OPTIMIZER_SWITCH_COND_PUSHDOWN_FROM_HAVING | \
|
||||
OPTIMIZER_SWITCH_OPTIMIZE_JOIN_BUFFER_SIZE)
|
||||
|
||||
/*
|
||||
See adjust_secondary_key_cost in sys_vars.cc for symbolic names.
|
||||
*/
|
||||
#define OPTIMIZER_ADJ_FIX_CARD_MULT (1)
|
||||
|
||||
/*
|
||||
Replication uses 8 bytes to store SQL_MODE in the binary log. The day you
|
||||
use strictly more than 64 bits by adding one more define above, you should
|
||||
|
Reference in New Issue
Block a user