Bug #78289 | bad execution plan with innodb_stats_persistent enabled | ||
---|---|---|---|
Submitted: | 31 Aug 2015 13:20 | Modified: | 31 Aug 2015 15:09 |
Reporter: | Miguel Angel Nieto | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.6 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[31 Aug 2015 13:20]
Miguel Angel Nieto
[31 Aug 2015 14:46]
MySQL Verification Team
looks like a duplicate of not-a-bug https://bugs.mysql.com/bug.php?id=70617
[31 Aug 2015 14:55]
MySQL Verification Team
This is well known behavior in many cases where innodb_stats_persistent is enabled. For a complete explanation of why these phenomena occurs and possible solutions, please read the entire text in the bug # 70617. A developer that works on this feature has provided all the explanations required. Not a bug.
[31 Aug 2015 15:09]
Miguel Angel Nieto
So, I have a database with large tables. I run thousands of pretty simple queries that use PK as the where clause. This "not bug" will cause downtime, queuing thousand of queries that will be scanning million of rows. A bit scary for a non bug :) Correct me if I am wrong, but shouldn't be as easy as triggering the calculation when a rename table is done?
[31 Aug 2015 17:25]
MySQL Verification Team
There will be some changes due to RENAME, but not the ones that you might expect. Simply, the statistics table will include the table name (not ID), hence it will have a new string there for the name. It will have no effect on the statistics themselves, nor on the refreshing of the persistent stats. Simply, RENAME does not touch any page, node or stats value.