Error "1038 Out of sort memory, consider increasing sort buffer size

后端 未结 4 1120

In symfony2, doctrine2, I have a query which triggers an error :

Error \"1038 Out of sort memory, consider increasing server sort buffer size

T

4条回答
  •  感情败类
    2021-02-13 12:06

    In my case what actually helped without increasing the sort buffer size was to create indexes for the fields that I was ordering on. I'm not sure if it would work when joining tables but it will work when trying to order a single table which is very large.

提交回复
热议问题