因此,我将查询简化为一些非常小的内容,试图使索引与order by一起工作,而忽略了查询其他部分的其他潜在问题。我看到,根据mysql文档,一些非常基本的东西,比如:explain select * from t1 order by a1应该工作,前提是a1上有索引,但这不是我所看到的: rows: 37202如果我解释select id from t1 order by a1,我可以让索引正常工作对
我在mysql数据库中有一张表。floor where date=%s order by timestamp desc 为了更快的结果,我在我的表上创建了索引我的索引:
+------------+------------+----------+--------------+-------------+-----------+-------------+------+----------+--------+------+-----------