Removed FORCE INDEX from API category queries
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 22 Feb 2015 20:49:37 +0000 (12:49 -0800)
committerTim Starling <tstarling@wikimedia.org>
Mon, 23 Feb 2015 05:10:57 +0000 (05:10 +0000)
Change-Id: I7333256b90e18b9ccb6cc0852d021a5fad2c7b45

includes/api/ApiQueryCategories.php

index fcfddd6..6aa714e 100644 (file)
@@ -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 ) {