API: Improve queries for prop=revisions in enum mode
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 3 Feb 2015 16:53:27 +0000 (11:53 -0500)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 24 Apr 2015 22:49:59 +0000 (15:49 -0700)
commitac02f17a9f96f2960499b5a9ba194bf2e534ff0e
tree70f37212e019fefce25dc94540ad2f498ef130d9
parent13064248e21f43a19e3662845d96c6e0c94ebdb2
API: Improve queries for prop=revisions in enum mode

This reworks the queries to better use the indexes available, and at the
same time sorts results by rev_timestamp like they always should have
been rather than rev_id. See T88084 for details.

This also takes the opportunity to replace !is_null with !== null, since
it was annoying me while writing this.

Bug: T88084
Bug: T91883
Change-Id: Ie175c6014e75848e9dda6b413175c8575d1ef6af
RELEASE-NOTES-1.26
includes/api/ApiQueryRevisions.php