From 7e1a34ba324700de45dafd5241d5ecf4b44303f9 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 22 Feb 2015 12:49:37 -0800 Subject: [PATCH] Removed FORCE INDEX from API category queries Change-Id: I7333256b90e18b9ccb6cc0852d021a5fad2c7b45 --- includes/api/ApiQueryCategories.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index fcfddd6a62..6aa714e747 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -117,8 +117,6 @@ class ApiQueryCategories extends ApiQueryGeneratorBase { } } - $this->addOption( 'USE INDEX', array( 'categorylinks' => 'cl_from' ) ); - $sort = ( $params['dir'] == 'descending' ? ' DESC' : '' ); // Don't order by cl_from if it's constant in the WHERE clause if ( count( $this->getPageSet()->getGoodTitles() ) == 1 ) { -- 2.20.1