[MDEV-9999] Change the default value of optimizer_use_condition_selectivity Created: 2016-04-26  Updated: 2018-02-14  Resolved: 2018-02-14

Status: Closed
Project: MariaDB Server
Component/s: Optimizer
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Sergei Petrunia Assignee: Varun Gupta (Inactive)
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-15253 Default optimizer setting changes for... Closed
PartOf
is part of MDEV-7635 update defaults and simplify mysqld c... Closed

 Description   

Currently, the default for optimizer_use_condition_selectivity is 1

https://mariadb.com/kb/en/mariadb/server-system-variables/#optimizer_use_condition_selectivity

Meanings of values from here:

1 Use selectivity of predicates as in MariaDB 5.5.
2 Use selectivity of all range predicates supported by indexes.
3 Use selectivity of all range predicates estimated without histogram.
4 Use selectivity of all range predicates estimated with histogram.
5 Additionally use selectivity of certain non-range predicates calculated on record sample.

We could change the default to be 4. (This is not a big change as it may seem, because histograms are not collected automatically).



 Comments   
Comment by Sergei Petrunia [ 2016-04-26 ]

Note: also discussed whether we should adopt using "guesstimates" like 5.7 does with their "condition_fanout_filter=on" (which is on by default). the answer atm is that we shouldn't.

Comment by Sergei Petrunia [ 2016-04-26 ]

igor, cvicentiu, fyi.

Generated at Thu Feb 08 07:38:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.