MySQL Forums
Forum List  »  Performance

Re: select query not using indexes
Posted by: Alon Lubin
Date: June 18, 2008 08:22AM

Hi Rick.

I am using Innodb.

When you got a "between condition" and you got the index to back it up, range scan will always be better then full index scan, 15% (which turns out in every measurement I do) is useless.

Calculating the start/stop position of the index is no time comparing to the actual scan.

In my example the scan was on an additional index (not primary). I believe that if "force index" is reducing query time from 29 minutes to 49 seconds, the optimizer is way too naive and does estimate the penalty of disk IO correctly.

Thanks for your help,
Alon.

Options: ReplyQuote


Subject
Views
Written By
Posted
4033
June 11, 2008 01:05AM
1934
June 11, 2008 04:44AM
1924
June 15, 2008 07:44PM
2009
June 16, 2008 06:45PM
1834
June 21, 2008 05:56PM
1732
June 23, 2008 11:49PM
2147
June 27, 2008 11:23PM
Re: select query not using indexes
1895
June 18, 2008 08:22AM


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.