MySQL 8.0.40
Source Code Documentation
|
Code used for calculating and manipulating table statistics. More...
Functions | |
static void | dict_stats_set_persistent (dict_table_t *table, bool ps_on, bool ps_off) |
Set the persistent statistics flag for a given table. More... | |
static bool | dict_stats_is_persistent_enabled (const dict_table_t *table) |
Check whether persistent statistics is enabled for a given table. More... | |
static void | dict_stats_auto_recalc_set (dict_table_t *table, bool auto_recalc_on, bool auto_recalc_off) |
Set the auto recalc flag for a given table (only honored for a persistent stats enabled table). More... | |
static bool | dict_stats_auto_recalc_is_enabled (const dict_table_t *table) |
Check whether auto recalc is enabled for a given table. More... | |
static void | dict_stats_init (dict_table_t *table) |
Initialize table's stats for the first time when opening a table. More... | |
static void | dict_stats_deinit (dict_table_t *table) |
Deinitialize table's stats after the last close of the table. More... | |
Code used for calculating and manipulating table statistics.
Created Jan 23, 2012 Vasil Dimov
|
inlinestatic |
Check whether auto recalc is enabled for a given table.
table | in: table |
|
inlinestatic |
Set the auto recalc flag for a given table (only honored for a persistent stats enabled table).
The flag is set only in the in-memory table object and is not saved in InnoDB files. It will be read from the .frm file upon first open from MySQL after a server restart.
table | in/out: table |
auto_recalc_on | in: explicitly enabled |
auto_recalc_off | in: explicitly disabled |
|
inlinestatic |
Deinitialize table's stats after the last close of the table.
This is used to detect "FLUSH TABLE" and refresh the stats upon next open.
table | in/out: table |
|
inlinestatic |
Initialize table's stats for the first time when opening a table.
table | in/out: table |
|
inlinestatic |
Check whether persistent statistics is enabled for a given table.
table | in: table |
|
inlinestatic |
Set the persistent statistics flag for a given table.
This is set only in the in-memory table object and is not saved on disk. It will be read from the .frm file upon first open from MySQL after a server restart.
table | in/out: table |
ps_on | in: persistent stats explicitly enabled |
ps_off | in: persistent stats explicitly disabled |