Bug #20058 | Query Internal ANALYZE counter in show status (or similar) | ||
---|---|---|---|
Submitted: | 24 May 2006 21:31 | Modified: | 13 May 2010 16:04 |
Reporter: | Morgan Tocker | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S4 (Feature request) |
Version: | 5.1+ | OS: | Any (ALL) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[24 May 2006 21:31]
Morgan Tocker
[25 May 2006 17:44]
Heikki Tuuri
Hmm... I believe MySQL still does not use the new index statistics while the mysqld server is running. It only asks for the index statistics once, when the table is opened. But also the row count affects optimization, and that counter IS queried by MySQL in certain situations other than the first opening of the table. I believe also MyISAM keeps an up-to-date value of row count for query optimization. This whole area should be overhauled. InnoDB should collect more accurate statistics in ANALYZE, and there should be a clear policy when MySQL updates the index stats and row count it uses in query optimization. The DBA could configure if he wants dynamic updating of stats every day or when 1 / 16 of the table has changed.
[26 Dec 2006 12:49]
Valeriy Kravchuk
Thank you for a reasonable feature request.