Default sort-ordering in MySQL (ALTER TABLE … ORDER BY …;)

前端 未结 2 1711
既然无缘
既然无缘 2020-12-01 14:15

Assume that the default ordering of a MySQL-table (ISAM) is changed by executing:

ALTER TABLE tablename ORDER BY columnname ASC;

From now o

2条回答
  •  死守一世寂寞
    2020-12-01 15:05

    Physically ordering a column can save loads of IO. It's perfectly legitimate method used in advanced systems to speed query time. You just need to reorg the data every now and then so its stays clustered. Just because some folks haven't heard of it doesn't mean it doesn't exist. - 25 year advanced DB design veteran.

提交回复
热议问题