Re: How make indexes work with group by statement
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
Subject
Views
Written By
Posted
2352
September 13, 2012 12:48AM
Re: How make indexes work with group by statement
1408
September 13, 2012 01:50AM
1345
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.