updateCollation.php: Switch back to using cl_from index for now
authorKevin Israel <pleasestand@live.com>
Fri, 20 Nov 2015 03:13:17 +0000 (22:13 -0500)
committerTim Starling <tstarling@wikimedia.org>
Thu, 21 Jan 2016 05:57:48 +0000 (05:57 +0000)
commit1dd4c867e5368cfd187a9eb2f141440a5a8ce86f
tree522b7eee7d0b9673388787b63677c0cc4fd5ece4
parent23164604db9727b44d6d420b3344636da4934be1
updateCollation.php: Switch back to using cl_from index for now

Using the cl_sortkey index instead (to reduce disruption to a live
site), as currently implemented, seems to have two serious problems:

* MySQL / MariaDB filesorts all rows that "sort above the given row
  [the last row of the previous batch]", not just a single category
  at a time until the row limit is reached.
* The current approach to pagination is broken in that it does not
  work with ENUM columns such as cl_type, causing 'file' rows to be
  skipped, or rows of any type to be repeated. See T119173.

This reverts part of commit a43f751cf6b6849e.

Bug: T58041
Change-Id: I619564e85b2122f249bdacc45d547b9ce1b3beb5
maintenance/updateCollation.php