[JobQueue] Kill ORDER BY in job claim function.
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 12 Dec 2012 23:37:21 +0000 (15:37 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 12 Dec 2012 23:44:00 +0000 (15:44 -0800)
commitc3147eb053e0fb4c60f8feddc7de1bc363210d02
tree784d14d54a4ff813c76d557cbe1ded9bf445854d
parent583a3d668de409a718a67b8826f0149732003760
[JobQueue] Kill ORDER BY in job claim function.

* Although indexed, this slows down for some reason. This started
  to waste master CPU time for wmf wikis with hundreds of thousands
  of jobs. Given how the DB scans the index, the function still
  works correctly without the ORDER BY.

Change-Id: I6ba6cc65d0023de3b9d9df0cfcd6a403289c9848
includes/job/JobQueueDB.php