Re: Slow Query, Optimization Advice Needed
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.
Subject
Views
Written By
Posted
1795
April 26, 2016 09:30AM
920
April 27, 2016 01:02AM
1064
April 27, 2016 07:20PM
Re: Slow Query, Optimization Advice Needed
854
April 27, 2016 11:28PM
1058
April 28, 2016 01:25AM
1021
April 28, 2016 01:12AM
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.