mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-17255: New optimizer defaults and ANALYZE TABLE
Added to new values to the server variable use_stat_tables. The values are COMPLEMENTARY_FOR_QUERIES and PREFERABLY_FOR_QUERIES. Both these values don't allow to collect EITS for queries like analyze table t1; To collect EITS we would need to use the syntax with persistent like analyze table t1 persistent for columns (col1,col2...) index (idx1, idx2...) / ALL Changing the default value from NEVER to PREFERABLY_FOR_QUERIES.
This commit is contained in:
@ -10,7 +10,7 @@ SET @@global.use_stat_tables = 2;
|
||||
SET @@global.use_stat_tables = DEFAULT;
|
||||
SELECT @@global.use_stat_tables;
|
||||
@@global.use_stat_tables
|
||||
PREFERABLY
|
||||
PREFERABLY_FOR_QUERIES
|
||||
SET @@global.use_stat_tables = 0;
|
||||
SELECT @@global.use_stat_tables;
|
||||
@@global.use_stat_tables
|
||||
|
Reference in New Issue
Block a user