Type性能顺序

http://blog.itpub.net/69995740/viewspace-2775371/

system > const > eq_ref > ref > Ref_or_null > index_merge > unique_subquery > index_subquery > range > index > all

extra

using where > using index condition > using temporary > using sort_union(indexs) > using MRR > using join buffer(Block Nested Loop) > using join buffer(Batched Key Access) > using index for group by > using index > using filesort > materialize scan

索引类型

Normal 普通索引(大多数情况下都可以使用)
btree 多叉树 主流使用
FullText 全文索引 (检索长文本的时候,效果最好;搜索很长一篇文章的时候,效果最好)
Unique 唯一索引 (身份证号用作索引时,可设置为unique)
SPATIAL 空间索引(创建空间索引的列,必须将其声明为NOT NULL,空间索引只能在存储引擎为MYISAM的表中创建)
hash 索引结构的特殊性,(key,value)其检索效率非常高