MariaDB starting with 10.0.1

The mysql.index_stats table was introduced as part of the Engine-independent table statistics feature implemented in MariaDB 10.0.1.

The mysql.index_stats table is one of three tables storing data used for Engine-independent table statistics added in MariaDB 10.0.1. The others are mysql.column_stats and mysql.table_stats.

The table contains the following fields:

db_namevarchar(64)NOPRINULLDatabase the table is in.
table_namevarchar(64)NOPRINULLTable name
index_namevarchar(64)NOPRINULLName of the index
prefix_arityint(11) unsignedNOPRINULLIndex prefix length. 1 for the first keypart, 2 for the first two, and so on. InnoDB's extended keys are supported.
avg_frequencydecimal(12,4)YESNULLAverage number of records one will find for given values of (keypart1, keypart2, ..), provided the values will be found in the table.

It is possible to manually update the table. See Manual updates to statistics tables for details.


Comments loading...