MySQL Forums
Forum List  »  Performance

Re: Slow Query, Optimization Advice Needed
Posted by: Peter Brawley
Date: April 27, 2016 11:28PM

In(Select...) can be a performance killer, especially before MySQL 5.6. Yours just selects an M row with locationid matching L and a trailerid with the highest tbmovements value. That can be done with a join.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Slow Query, Optimization Advice Needed
413
April 27, 2016 11:28PM


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.