恩,又一个知识忘记了..看来要常做备忘才行…
explain 显示的filesort不是说”因为数据太大,内存不够,然后在文件中排序”..filesort的意思是”排序没有使用到索引“,跟文件(file)没啥关系..
当然了,sort这个不会是错的,算法是用quicksort,也就是快速排序
Name (required)
Mail (will not be published) (required)
Website
Comment spam protected by SpamBam
You will not be able to post a comment. Javascript is required.