Status: Closed (View Workflow)
MDEV-15253, which changes optimizer defaults to include using the histograms and their selectivity:
One of the effects of the new settings is that statement like
ANALYZE TABLE t1
MDEV-15253 will start to collect EITS stats.
This was enabled in MTR and was instrumental in finding a lot of bugs related to EITS (Good).
However, it is not appropriate for production uses: If ANALYZE TABLE t1 collects EITS stats, it takes much more time (my measurement: 10x time the full table scan). This is BAD.
Possible ways out:
Solution 1: Make ANALYZE TABLE t1 not collect EITS stats
- We will need to rollback all of the changes to .result files in
- EITS will have few test coverage.
Solution 2: Make ANALYZE TABLE t1 collect EITS stats for MTR but not users.
- Let use_stat_tables=preferably remain what it currently is: ANALYZE TABLE t1 collects EITS stats. MTR will run with this setting.
- Introduce another value of use_stat_tables=preferably_for_reads (name is tentative). This will be the default for the users. It will mean that ANALYZE TABLE t1 does not collect EITS stats.
(One may argue that this is bad as MTR will run in an environment that's not like the users have. On the other hand, MTR will run with predictable statistical data. MTR used to run with sampled, non-predictable stats which made `rows` column and query plans unstable)
Wait until Vicentiu and Teodor are done with EITS-via-sampling.
This is bad as it creates a dependency between these two tasks.
We do not want to push the defaults change late in the release cycle.
- is part of
MDEV-15253 Default optimizer setting changes for MariaDB 10.4