MySQL Forums
Forum List  »  Performance

Re: MySQL query with timestamp not using index
Posted by: Rick James
Date: April 12, 2014 09:49AM

Instead of DESCRIBE, show us SHOW CREATE TABLE, it is more descriptive. In particular, I need to know which ENGINE it is and how the index(es) are declared. (There may be other clues.)

Please provide EXPLAIN PARTITIONS SELECT ... for each SELECT.

How many partitions and rows are in the entire table? In the last 6 days (the selected range)?

Drop "DISTINCT" -- it is unnecessary (even wrong?) when you have that GROUP BY.

It may have done PARTITION PRUNING, but punted on using the INDEX. The above infomation will help me elaborate.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL query with timestamp not using index
1877
April 12, 2014 09:49AM


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.