--optimizer-switch
This page is part of MariaDB's Documentation.
The parent of this page is: mariadbd & mysqld for MariaDB Enterprise Server
Topics on this page:
Overview
This is a command-line option for the mariadbd
& mysqld
commands (arg: Required).
In 11.4 ES, 10.6 ES:
Fine-tune the optimizer behavior. Takes a comma-separated list of option=value pairs, where value is on, off, or default, and options are: index_
merge, index_ merge_ union, index_ merge_ sort_ union, index_ merge_ intersection, index_ merge_ sort_ intersection, engine_ condition_ pushdown, index_ condition_ pushdown, derived_ merge, derived_ with_ keys, firstmatch, loosescan, materialization, in_ to_ exists, semijoin, partial_ match_ rowid_ merge, partial_ match_ table_ scan, subquery_ cache, mrr, mrr_ cost_ based, mrr_ sort_ keys, outer_ join_ with_ cache, semijoin_ with_ cache, join_ cache_ incremental, join_ cache_ hashed, join_ cache_ bka, optimize_ join_ buffer_ size, table_ elimination, extended_ keys, exists_ to_ in, orderby_ uses_ equalities, condition_ pushdown_ for_ derived, split_ materialized, condition_ pushdown_ for_ subquery, rowid_ filter, condition_ pushdown_ from_ having, not_ null_ range_ scan, hash_ join_ cardinality, sargable_ casefold In 10.6 CS:
Fine-tune the optimizer behavior. Takes a comma-separated list of option=value pairs, where value is on, off, or default, and options are: index_
merge, index_ merge_ union, index_ merge_ sort_ union, index_ merge_ intersection, index_ merge_ sort_ intersection, engine_ condition_ pushdown, index_ condition_ pushdown, derived_ merge, derived_ with_ keys, firstmatch, loosescan, materialization, in_ to_ exists, semijoin, partial_ match_ rowid_ merge, partial_ match_ table_ scan, subquery_ cache, mrr, mrr_ cost_ based, mrr_ sort_ keys, outer_ join_ with_ cache, semijoin_ with_ cache, join_ cache_ incremental, join_ cache_ hashed, join_ cache_ bka, optimize_ join_ buffer_ size, table_ elimination, extended_ keys, exists_ to_ in, orderby_ uses_ equalities, condition_ pushdown_ for_ derived, split_ materialized, condition_ pushdown_ for_ subquery, rowid_ filter, condition_ pushdown_ from_ having, not_ null_ range_ scan, hash_ join_ cardinality In 10.5 ES, 10.5 CS:
Fine-tune the optimizer behavior. Takes a comma-separated list of option=value pairs, where value is on, off, or default, and options are: index_
merge, index_ merge_ union, index_ merge_ sort_ union, index_ merge_ intersection, index_ merge_ sort_ intersection, engine_ condition_ pushdown, index_ condition_ pushdown, derived_ merge, derived_ with_ keys, firstmatch, loosescan, materialization, in_ to_ exists, semijoin, partial_ match_ rowid_ merge, partial_ match_ table_ scan, subquery_ cache, mrr, mrr_ cost_ based, mrr_ sort_ keys, outer_ join_ with_ cache, semijoin_ with_ cache, join_ cache_ incremental, join_ cache_ hashed, join_ cache_ bka, optimize_ join_ buffer_ size, table_ elimination, extended_ keys, exists_ to_ in, orderby_ uses_ equalities, condition_ pushdown_ for_ derived, split_ materialized, condition_ pushdown_ for_ subquery, rowid_ filter, condition_ pushdown_ from_ having, not_ null_ range_ scan In 10.4 ES, 10.4 CS:
Fine-tune the optimizer behavior. Takes a comma-separated list of option=value pairs, where value is on, off, or default, and options are: index_
merge, index_ merge_ union, index_ merge_ sort_ union, index_ merge_ intersection, index_ merge_ sort_ intersection, engine_ condition_ pushdown, index_ condition_ pushdown, derived_ merge, derived_ with_ keys, firstmatch, loosescan, materialization, in_ to_ exists, semijoin, partial_ match_ rowid_ merge, partial_ match_ table_ scan, subquery_ cache, mrr, mrr_ cost_ based, mrr_ sort_ keys, outer_ join_ with_ cache, semijoin_ with_ cache, join_ cache_ incremental, join_ cache_ hashed, join_ cache_ bka, optimize_ join_ buffer_ size, table_ elimination, extended_ keys, exists_ to_ in, orderby_ uses_ equalities, condition_ pushdown_ for_ derived, split_ materialized, condition_ pushdown_ for_ subquery, rowid_ filter, condition_ pushdown_ from_ having In 10.3 ES, 10.3 CS:
Fine-tune the optimizer behavior. Takes a comma-separated list of option=value pairs, where value is on, off, or default, and options are: index_
merge, index_ merge_ union, index_ merge_ sort_ union, index_ merge_ intersection, index_ merge_ sort_ intersection, engine_ condition_ pushdown, index_ condition_ pushdown, derived_ merge, derived_ with_ keys, firstmatch, loosescan, materialization, in_ to_ exists, semijoin, partial_ match_ rowid_ merge, partial_ match_ table_ scan, subquery_ cache, mrr, mrr_ cost_ based, mrr_ sort_ keys, outer_ join_ with_ cache, semijoin_ with_ cache, join_ cache_ incremental, join_ cache_ hashed, join_ cache_ bka, optimize_ join_ buffer_ size, table_ elimination, extended_ keys, exists_ to_ in, orderby_ uses_ equalities, condition_ pushdown_ for_ derived, split_ materialized In 10.2 ES, 10.2 CS:
Fine-tune the optimizer behavior. Takes a comma-separated list of option=value pairs, where value is on, off, or default, and options are: index_
merge, index_ merge_ union, index_ merge_ sort_ union, index_ merge_ intersection, index_ merge_ sort_ intersection, engine_ condition_ pushdown, index_ condition_ pushdown, derived_ merge, derived_ with_ keys, firstmatch, loosescan, materialization, in_ to_ exists, semijoin, partial_ match_ rowid_ merge, partial_ match_ table_ scan, subquery_ cache, mrr, mrr_ cost_ based, mrr_ sort_ keys, outer_ join_ with_ cache, semijoin_ with_ cache, join_ cache_ incremental, join_ cache_ hashed, join_ cache_ bka, optimize_ join_ buffer_ size, table_ elimination, extended_ keys, exists_ to_ in, orderby_ uses_ equalities, condition_ pushdown_ for_ derived
See also: mariadbd & mysqld for MariaDB Enterprise Server 11.4, in 10.6 ES, in 10.5 ES, in 10.4 ES, in 10.3 ES, in 10.2 ES, in 10.6 CS, in 10.5 CS, in 10.4 CS, in 10.3 CS, and in 10.2 CS
CHANGE HISTORY
Release Series | History |
---|---|
11.4 Enterprise |
|
10.6 Enterprise |
|
10.6 Community |
|
10.5 Enterprise |
|
10.5 Community |
|
10.4 Enterprise |
|
10.4 Community |
|
10.3 Enterprise |
|
10.3 Community |
|
10.2 Enterprise |
|
10.2 Community |
|