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
2030
April 26, 2016 09:30AM
1035
April 27, 2016 01:02AM
1175
April 27, 2016 07:20PM
Re: Slow Query, Optimization Advice Needed
969
April 27, 2016 11:28PM
1207
April 28, 2016 01:25AM
1078
May 01, 2016 11:47PM
1103
May 02, 2016 01:28AM
1139
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.