MySQL Forums
Forum List  »  Performance

Re: How MySQL Uses Indexes
Posted by: Rick James
Date: May 07, 2013 07:47PM

Quote

The result:
id: 1
select_type: SIMPLE
table: t
type: range <--
possible_keys: a
key: a <--
key_len: 3 <--
ref: NULL
rows: 1267 <--
Extra: Using where

Where records above '2013-04-05' is important, mysql does not use index?
That says it did use the index. But (1269/8199 rows) was probably close to the cutoff for using the INDEX `a`.

Options: ReplyQuote


Subject
Views
Written By
Posted
2231
May 04, 2013 08:28AM
919
May 06, 2013 10:31AM
945
May 06, 2013 07:57PM
926
May 07, 2013 12:24PM
Re: How MySQL Uses Indexes
830
May 07, 2013 07:47PM
827
May 08, 2013 05:33AM
837
May 08, 2013 09:04PM


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.