Removed STRAIGHT_JOIN; the is slower when a namespace has a few pages
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 18 Feb 2014 21:03:20 +0000 (13:03 -0800)
committerSpringle <springle@wikimedia.org>
Wed, 19 Feb 2014 02:48:53 +0000 (02:48 +0000)
bug: 60618
Change-Id: I1b8e9f3c15dd99a4f438bb431bee231e5648f5a3

includes/specials/SpecialWhatlinkshere.php

index 3f9b98d..789ea76 100644 (file)
@@ -152,10 +152,6 @@ class SpecialWhatLinksHere extends SpecialPage {
                // Read an extra row as an at-end check
                $queryLimit = $limit + 1;
 
-               // Enforce join order, sometimes namespace selector may
-               // trigger filesorts which are far less efficient than scanning many entries
-               $options[] = 'STRAIGHT_JOIN';
-
                $options['LIMIT'] = $queryLimit;
                $fields = array( 'page_id', 'page_namespace', 'page_title', 'rd_from' );