MySQL Forums
Forum List  »  Optimizer & Parser

Re: How make indexes work with group by statement
Posted by: Rick James
Date: September 15, 2012 10:34PM

> the fields that have an index on them
Do you mean
INDEX(dt1), INDEX(dt2) -- not useful
or
INDEX(dt2, dt1) -- not useful
or
INDEX(dt1, dt2) -- potentially useful
?

Is this your actual query? Or a simplified version? (It can make a difference.)
> select * from temp_table group by dt1,dt2;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How make indexes work with group by statement
1216
September 15, 2012 10:34PM


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.