From: Aaron Schulz Date: Sun, 22 Feb 2015 20:49:37 +0000 (-0800) Subject: Removed FORCE INDEX from API category queries X-Git-Tag: 1.31.0-rc.0~12302^2 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=7e1a34ba324700de45dafd5241d5ecf4b44303f9;p=lhc%2Fweb%2Fwiklou.git Removed FORCE INDEX from API category queries Change-Id: I7333256b90e18b9ccb6cc0852d021a5fad2c7b45 --- 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 ) {