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
1663
April 26, 2016 09:30AM
832
April 27, 2016 01:02AM
965
April 27, 2016 07:20PM
Re: Slow Query, Optimization Advice Needed
779
April 27, 2016 11:28PM
943
April 28, 2016 01:25AM
919
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.