I try to override the variable
optimizer_switch and change
The official documentation does not provide an example.
sudo service mariadb restart sudo service mysql restart
Same as #1 but I moved my file here
I checked by logging in to mysql and executing
SHOW VARIABLES LIKE "optimizer_switch";, and I get this at both attempts:
optimizer_switch | index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off
As you can see it is still turned on
What am I missing?
I tried setting it directly via
SET GLOBAL optimizer_switch = 'rowid_filter=off'; but it is still on if I check.