MySQL Forums
Forum List  »  Performance

Re: 6-table join, good indices, bad perf
Posted by: Øystein Grøvlen
Date: November 19, 2012 07:22AM

Hi,

Since the query does not contain any aggregation, what is the point of the GROUP BY clause?

You could also try adding indexes on SegmentsVCG2LU.vcc and VehicleContexts.vcc to make it less costly to do the filtering on these tables earlier index join sequence.

Also, if you have an index on GroupStructure.sgc, it will be possible to start with the Group table and possibly avoid sorting for grouping.

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

Options: ReplyQuote


Subject
Views
Written By
Posted
2599
November 16, 2012 11:32AM
1487
November 17, 2012 10:41AM
2792
November 17, 2012 11:36AM
1248
November 18, 2012 03:37PM
1008
November 18, 2012 05:11PM
Re: 6-table join, good indices, bad perf
1130
November 19, 2012 07:22AM


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.