From 7055f287a1aba6a88696f0831b9c0dd7b14794e3 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Fri, 15 Apr 2016 17:42:21 -0400 Subject: [PATCH] Put a high max limit of 60,000 on Special:LinkSearch LinkSearch uses inefficient paging. Previously there was no max limit, then it was 10,000, but people on enwiki are complaining, so put it up to something high, like 60,000, to fix the immediate issue. Special page should of course be changed to use efficient paging. Bug: T130058 Change-Id: I0c4b1ad0138571bcf286ca88bceebf86b9a095f6 --- includes/specials/SpecialLinkSearch.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/specials/SpecialLinkSearch.php b/includes/specials/SpecialLinkSearch.php index 2a7046ecbd..1ecbee007e 100644 --- a/includes/specials/SpecialLinkSearch.php +++ b/includes/specials/SpecialLinkSearch.php @@ -299,4 +299,14 @@ class LinkSearchPage extends QueryPage { protected function getGroupName() { return 'redirects'; } + + /** + * enwiki complained about low limits on this special page + * + * @see T130058 + * @todo FIXME This special page should not use LIMIT for paging + */ + protected function getMaxResults() { + return max( parent::getMaxResults(), 60000 ); + } } -- 2.20.1