为数据列添加索引

alter table users add index login_email(login, email);

分析索引
explain select * from users;
看里面的key是否存在或为NULL

相关文章: