Bug #30363 | TPC-D complex query slower by 2.6x to 6x times in 5.2 then in 5.1 | ||
---|---|---|---|
Submitted: | 10 Aug 2007 17:58 | Modified: | 20 Nov 2010 18:10 |
Reporter: | Omer Barnir (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S5 (Performance) |
Version: | 5.2.4 | OS: | Any |
Assigned to: | Sergey Petrunya | CPU Architecture: | Any |
[10 Aug 2007 17:58]
Omer Barnir
[10 Aug 2007 17:58]
Omer Barnir
Quest benchmarks were run by Robin Schumacher <rschumacher@mysql.com>. If you have any questions please let Robin or me know
[24 Aug 2007 13:54]
Martin Hansson
This is indeed an optimizer bug, all that extra time is spent compiling the query. The plans are indentical except that 5.1 uses the join buffer in 9 places, while 5.2 never uses it only 3 times.
[15 Sep 2007 15:06]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/34315 ChangeSet@1.2599, 2007-09-15 19:05:18+04:00, sergefp@mysql.com +3 -0 BUG#30363: complex query slower by 2.6x to 6x times in 5.2 then in 5.1 The bugfix is a fix for the incorrect merge: - Make make_join_orderinfo() determine the last table that can use the join buffering in exactly the same way as it is done in make_join_readinfo() in current 5.1 - Remove now unneeded code from make_join_readinfo()
[15 Dec 2007 8:30]
Sergey Petrunya
The fix is available in 6.0.4 (no idea why push trigger didn't change the bug status)
[25 Jan 2008 19:20]
Paul DuBois
Noted in 6.0.4 changelog. Compared to MySQL 5.1, the 6.0 optimizer failed to use join buffering for certain queries, resulting in slower performance for those queries.
[16 Aug 2010 6:37]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100816062819-bluwgdq8q4xysmlg) (version source revid:alik@sun.com-20100816062612-enatdwnv809iw3s9) (pib:20)
[13 Nov 2010 16:13]
Bugs System
Pushed into mysql-trunk 5.6.99-m5 (revid:alexander.nozdrin@oracle.com-20101113155825-czmva9kg4n31anmu) (version source revid:vasil.dimov@oracle.com-20100629074804-359l9m9gniauxr94) (merge vers: 5.6.99-m4) (pib:21)
[20 Nov 2010 18:10]
Paul DuBois
Noted in 5.6.1 changelog.