Avoid filesort with INNER JOIN + ORDER BY

前端 未结 2 1975
野的像风
野的像风 2021-01-13 05:50

I\'ve been reading other posts but I didn\'t managed to fix my query.

Using DESC order the query is x20 times slower, I must improve that. This is the q

2条回答
  •  無奈伤痛
    2021-01-13 06:30

    Increasing the sort_buffer_size parameter will increase the amount of memory MySQL uses before resorting to a temporary disk file and should help considerably.

提交回复
热议问题