Turning on and off Switchable optimizations

3.1k Views Asked by At

I have to turn off derived_merge optimization flag because of this issue, so I do it like from the link above:

set global optimizer_switch='derived_merge=OFF';

but also I would like to check its current value... How can I do that through the command line ?

1

There are 1 best solutions below

0
On BEST ANSWER

Ah, I just found it in official docs :)

Here is how you do it:

mysql> SELECT @@optimizer_switch\G