本帖最后由 colour_trace 于 2010-12-02 23:21:25 编辑

解决方案 »

  1.   

    如果没增加条件没问题的话,那增加条件也应该没问题,强制实用索引吧select * from tb froce index (索引名) where 。
      

  2.   

    create index *** on oritexts(updatedate,answercount)
      

  3.   

    create index xxx on oritexts(answercount,updatedate)这个索引应该就可以了。
    而oritexts(updatedate,answercount)这个索引对你的查询毫无意义!
    和昨天一样。提供你的信息以供别人分析。
    show index from oritexts;
    explain select ....
      

  4.   

    谢谢各位
    create index xxx on oritexts(answercount,updatedate)
    这个索引效率还是很低,
    用create index xxx on oritexts(answercount,isresolved)更块