Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
InnoDB in MySQL 5.6 introduced persistent statistics, to help the optimizer choose query plans. The statistics are stored in two tables: mysql.innodb_index_stats and mysql.innodb_table_stats, using the InnoDB-internal SQL parser while holding an exclusive lock on the InnoDB data dictionary cache. This architecture involves a number of workarounds to locking problems. It could also break replication when users modify the statistics tables directly from SQL, because the internal transactions to modify the statistics tables are not replicated.
The natural place to store the statistics is within the data file. If there is a real need to tweak the statistics other than by running ANALYZE TABLE, then an external tool could be written for that.
Attachments
Issue Links
- blocks
-
MDEV-11633 Make the InnoDB system tablespace optional
- Open
-
MDEV-11655 Transactional data dictionary
- Open
-
MDEV-24579 Error table->get_ref_count() after update to 10.5.8
- Closed
-
MDEV-29883 Deadlock between InnoDB statistics update and BLOB insert
- Closed
- is duplicated by
-
MDEV-24632 MariaDB 10.3.27 crash on windows
- Closed
- relates to
-
MDEV-19556 Support native storage engine sampling of rows
- Open
-
MDEV-23670 Crash during OPTIMIZE TABLE mysql.innodb_table_stats
- Closed
-
MDEV-29883 Deadlock between InnoDB statistics update and BLOB insert
- Closed
-
MDEV-31979 Assertion `!internal' failed in void trx_t::free()
- Open
-
MDEV-33993 Possible server hang on DROP INDEX or RENAME INDEX
- Closed
-
MDEV-11658 Simpler, faster IMPORT of InnoDB tables
- Open
-
MDEV-13360 too long values in mysql.innodb_table_stats.table_name
- Stalled
-
MDEV-14583 innodb.innodb-index-online failed in buildbot
- Closed
-
MDEV-14941 Timeouts on persistent statistics tables caused by MDEV-14511
- Closed
-
MDEV-18381 Server crashes in ha_innobase::store_lock upon concurrent ALTER and TRUNCATE
- Closed
-
MDEV-30707 MariaDB can'T be stopped
- Closed
- links to
- mentioned in
-
Page Loading...