MySQL Forums
Forum List  »  Performance

Re: Slow Query, Optimization Advice Needed
Posted by: Øystein Grøvlen
Date: April 27, 2016 01:02AM

Hi,

Which version of MySQL?

Can you show the output of EXPLAIN for this query? That will tell us what the current query plan is.

You seemed to be well covered with indexes, but a combined index on tblMovements(nTrailerID, tsMovement) might speed up the execution of the
subquery.

Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Slow Query, Optimization Advice Needed
423
April 27, 2016 01:02AM


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.