Bug #70331 Older version of MySQL gives better performance with simple tasks
| Submitted: | 13 Sep 2013 12:36 | Modified: | 10 Oct 2013 6:25 |
|---|---|---|---|
| Reporter: | Khurram Saeed | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S5 (Performance) |
| Version: | 5.6.13 | OS: | Windows (Windows 7 Professional) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | insert into select, myisam, MySQL, MySQL 5.0, mysql 5.6, performance, where in, windows | ||
[13 Sep 2013 12:36]
Khurram Saeed
[13 Sep 2013 12:43]
Peter Laursen
I think I saw another report about performance degradation with MySQL 5.6 and an enumerated list in the WHERE-clause. Peter (not a MySQL/Oracle person)
[20 Sep 2013 12:43]
Jørgen Løland
MySQL 5.6 introduced the system variable eq_range_index_dive_limit which improves the time used to gather statistics if you have many (>10 by default) values in an IN-list. However, if your data is skewed, this may lead to less accurate #rows estimates and therefore a bad execution plan.
Try to set eq_range_index_dive_limit to something bigger (e.g. 20) or 0 ("off") and see if the situation improves. Also, please report back with the result.
For more info: https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_eq_range_index...
[28 Sep 2013 19:33]
Khurram Saeed
Thanks for the solution Jørgen Løland. Setting the eq_range_index_dive_limit system variable to a bigger number did the trick for us. I tuned this parameter with some further reading from one of your blogs.
[10 Oct 2013 6:25]
Jørgen Løland
Hi Khurram, I'm closing this as 'not a bug' since the suggested solution worked for you. Regards, Jørgen
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.056 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.