MySQL slow query using filesort

后端 未结 3 1674
故里飘歌
故里飘歌 2021-01-27 17:57

I have speed problems with a MySQL query. The tables definitions are as follows:

CREATE TABLE IF NOT EXISTS `student` (
  `student_id` int(11) unsigned NOT NULL          


        
3条回答
  •  情歌与酒
    2021-01-27 18:36

    I can't test this very easily, but try using this student_sort key:

    KEYstudent_sort(student_college,countupDESC ,updated_timeDESC)

提交回复
热议问题