Re: How to enable index fast in MyISAM table
Posted by:
Rick James
Date: March 23, 2014 02:36PM
> explain showes it use correct process_sid index.
> KEY `process_sid` (`process_sid`,`action`),
> select xxx from servicetable where process_sid="xxx" and action in (xxx, ...) order by session_seq
That index is optimal for that query.
> explain partitions select count(*) from servicetable where timestamp>"2014-03-21 00:00:00" and timestamp<"2014-03-22 00:00:00" and date="2014-03-21";
That failed to say "Using index". File a bug at bugs.mysql.com
I do not know if it matters that `date` and `timestamp` are NULLable, but it might.
Subject
Views
Written By
Posted
3824
March 04, 2014 07:26PM
2061
March 08, 2014 12:42PM
2374
March 13, 2014 10:49PM
1841
March 14, 2014 06:32PM
1781
March 17, 2014 01:38AM
1718
March 20, 2014 06:33PM
1938
March 22, 2014 07:23PM
Re: How to enable index fast in MyISAM table
1733
March 23, 2014 02:36PM
1711
March 24, 2014 12:16AM
1756
March 24, 2014 10:49PM
1798
March 25, 2014 08:39PM
1979
March 26, 2014 11:55AM
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.