MySQL Forums
Forum List  »  Performance

Re: Query slow on Windows, fast on Ubuntu
Posted by: Øystein Grøvlen
Date: January 23, 2018 09:11AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
4717
January 22, 2018 09:24AM
Re: Query slow on Windows, fast on Ubuntu
1518
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.