![]() |
use of index
Code:
Select *Code:
"id","select_type","table","type","possible_keys","key","key_len","ref","rows","Extra"Code:
"id","select_type","table","type","possible_keys","key","key_len","ref","rows","Extra"Code:
Index_2(id_tezaver)Furthermore, if I use 'FORCE INDEX (index_2)' or 'USE INDEX (index_2), should that reflect in EXPLAIN result, coz it looks like it don't ? |
If MySQL decides that using a key won't help performance, then it will be very stubborn about it. There's not much you can do to force it to use the keys.
With only 8099 rows involved, MySQL undoubtedly feels that just loading the entire table into memory will be better than using the index. |
Thanks.
|
| All times are GMT +1. The time now is 03:59 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.