ApiQueryDeletedRevisions: Optimize ascending title generation
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 4 Sep 2015 20:24:54 +0000 (16:24 -0400)
committerAnomie <bjorsch@wikimedia.org>
Fri, 4 Sep 2015 20:45:56 +0000 (20:45 +0000)
commit11cf19d3ff0335706378b0b9f3d69091e4241f23
tree656a86e6565f5633b415dbf638351ec88a1df82d
parent0cb48157d9a649414184ed895076071763467576
ApiQueryDeletedRevisions: Optimize ascending title generation

When generating titles rather than revids, it would be nice if we could
query with DISTINCT to get the titles directly instead of processing
every deleted revision for the title.

Sadly, it turns out this only works with dir=newer (dir=older is the
default). But that's probably better than nothing.

Bug: T110792
Change-Id: Idd300510c92b00722574d046399dbeb486afa98b
includes/api/ApiQueryAllDeletedRevisions.php