MySQL Forums
Forum List  »  Performance

Re: Simple query seems to be ignoring date index
Posted by: Øystein Grøvlen
Date: November 01, 2013 02:47AM

Hi Greg,

How is the data ordered within the table? Could it be that it is more or less clustered on sym value? If so, that could explain why it is sym look-up is quicker than look-up on date.

Which version of MySQL are you using? MySQL 5.6 supports disk-sweep multi-range read (DS-MRR) which is a mechanism to re-arrange accesses to table to make it more sequential. You may have to set optimizer_switch='mrr_cost_based=off' to force DS-MRR in that case. Also, increasing the value of read_rnd_buffer_size is probably necessary to get the full benefit of DS-MRR.

Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Simple query seems to be ignoring date index
1002
November 01, 2013 02:47AM


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.