sql - Mysql: How to optimize this query. for faster results -


how optimize query, faster result tooks 80+ seconds on 10 million rows.

su_id , admin_id both btree indexed

select su_id members_ext admin_id = 5962789 

both int data types, btree index

cardinality of su_id 8496470 , admin_id 10437

explain result

id  ,select_type,table  ,type,rows,    1, simple ,members_ext , ,8496471 ,using 

make combined key on admin_id, su_id, data can fetched index only.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -