Re: Query slow on Windows, fast on Ubuntu
I think default for innodb_buffer_pool_size in 5.5 was 128M. How large is your database?
Without moving the predicates to WHERE, I do not think there is much the optimizer can do to improve this query.
I also recommend upgrading to MySQL 5.7. It will in many cases use query plans with a better join order. (You still need to have the predicates in WHERE, but straight_join should not be necessary.)
Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway
Subject
Views
Written By
Posted
4567
January 22, 2018 09:24AM
2123
January 22, 2018 11:09AM
1955
January 23, 2018 01:42AM
1776
January 23, 2018 03:13AM
1405
January 23, 2018 03:31AM
1375
January 23, 2018 03:50AM
1296
January 23, 2018 07:42AM
1332
January 23, 2018 08:33AM
Re: Query slow on Windows, fast on Ubuntu
1476
January 23, 2018 09:11AM
Sorry, you can't reply to this topic. It has been closed.
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.