如果没增加条件没问题的话,那增加条件也应该没问题,强制实用索引吧select * from tb froce index (索引名) where 。
create index *** on oritexts(updatedate,answercount)
create index xxx on oritexts(answercount,updatedate)这个索引应该就可以了。 而oritexts(updatedate,answercount)这个索引对你的查询毫无意义! 和昨天一样。提供你的信息以供别人分析。 show index from oritexts; explain select ....
谢谢各位 create index xxx on oritexts(answercount,updatedate) 这个索引效率还是很低, 用create index xxx on oritexts(answercount,isresolved)更块
而oritexts(updatedate,answercount)这个索引对你的查询毫无意义!
和昨天一样。提供你的信息以供别人分析。
show index from oritexts;
explain select ....
create index xxx on oritexts(answercount,updatedate)
这个索引效率还是很低,
用create index xxx on oritexts(answercount,isresolved)更块