You are here: Re: index optimalization issue « MySQL Databases « IT news, forums, messages
Re: index optimalization issue

Posted by Willem on 12/27/05 18:17

Can't you use a FORCE clause to force the use of an index?

Adam wrote:
> In where I use the "BETWEEN start AND stop"
> on field that has an index.
>
> but if the range exceed some value
> optimalizator drops the usage of index and
> go through all records :(
> e.g.
> "BETWEEN 222 AND 299 " --> 20649 (usage of index)
> "BETWEEN 222 AND 300 " --> 123063 (no index used)
> Result set contains similar nr of rows
>
> witch limit is exceeded in this situation?
> witch mysql param should I increase?
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация