I am improving the database tables by adding indexes where appropriate.
I’d like to add indexes to attributes that are used on GROUP_BY queries.
Is there a way to automagically know which fields were used by GROUP_BY?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t see that there’s a correlation between GROUP BY performance and the presence of indexes. If you have a query that runs slowly then I’d look to see indexes on the columns you have a predicate or a join on first of all.