If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Indexing against BETWEEN instead of =

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-06, 05:02
pakcik_kantin pakcik_kantin is offline
Registered User
 
Join Date: Jul 2004
Posts: 62
Question Indexing against BETWEEN instead of =

Greetings all MySQL DBA,

I index my callno fields for fast search. When i did BETWEEN statement , it turned to slow down the query, and from the explain statement

Quote:
explain select * from raw where callnobetween 71016800690001 and 71016800690100
Quote:
id,select_type,table,type,possible_keys,key,key_le n,ref,rows,Extra
1,SIMPLE,raw,ALL,PRIMARY,,,,17478015,Using where
How do i improved my indexing.

Thank you
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On