Lets Say i have a table like this
WEB_LIST_TABLE
KEY Value
----------------------------------------
134 google.com
187 yahoo.com
353 facebook.com
So on may be a million rows
The keys are primary keys and if i want to Select 50 Rows ,using the key, such as
Select * from WEB_LIST_TABLE where KEY in (134,187,...);
I m using where KEY in for selecting the rows, is it effective, based on performance ..?
Is there any other effective ways to do this?
This is effective, since field
keyis indexed. MySQL will use index to get the desired rows.As you can see,
Handler_read_keyis 5.According to documentation this means that it read all the five rows based on key.