MySQL Forums
Forum List  »  Optimizer & Parser

Re: How make indexes work with group by statement
Posted by: Jørgen Løland
Date: September 13, 2012 01:50AM

Hi Adnan

There is no technical reason that prevents MySQL from using indexes on a query with GROUP BY. This means that for your query, MySQL considers another way of accessing the table to be cheaper. This may or may not be a problem in your case.

I can't help you more without the following additional information:
* MySQL version
* SHOW CREATE table -- for involved tables
* EXPLAIN SELECT -- for the query you want help with

Hope this helps,
Jørgen Løland
Software Engineer, MySQL, Oracle
jorgenloland.blogspot.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How make indexes work with group by statement
1268
September 13, 2012 01:50AM


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.