Re: INDEX not getting used

2002-09-20 Thread Gerald Clark
If it thinks it will retrieve more than a third of the records, the index will not be used. [EMAIL PROTECTED] wrote: >I get the following results when doing a SELECT off a single table I have. >What's bizarre is that the index is no longer used when i expand my list of >states to be included. >

INDEX not getting used

2002-09-20 Thread mike . miller
I get the following results when doing a SELECT off a single table I have. What's bizarre is that the index is no longer used when i expand my list of states to be included. mysql> EXPLAIN SELECT * FROM shipping USE INDEX (state) WHERE state IN ('TN','NY'); +--+---+---