Merge "ApiQueryLinks: Remove index forcing"
authorMaxSem <maxsem.wiki@gmail.com>
Thu, 7 Sep 2017 22:49:38 +0000 (22:49 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 7 Sep 2017 22:49:38 +0000 (22:49 +0000)
includes/api/ApiQueryLinks.php

index d29a763..4b34091 100644 (file)
@@ -137,7 +137,6 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
 
                $order[] = $this->prefix . '_title' . $sort;
                $this->addOption( 'ORDER BY', $order );
-               $this->addOption( 'USE INDEX', [ $this->table => 'PRIMARY' ] );
                $this->addOption( 'LIMIT', $params['limit'] + 1 );
 
                $res = $this->select( __METHOD__ );