From: Brad Jorsch Date: Wed, 12 Apr 2017 14:07:03 +0000 (-0400) Subject: ApiQueryLinks: Remove index forcing X-Git-Tag: 1.31.0-rc.0~2183^2 X-Git-Url: https://git.cyclocoop.org/admin/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27new_vote%27%29%20%7D%7D?a=commitdiff_plain;h=f3926df5750dd0d89421f8e4a41bb0275e8f36b4;p=lhc%2Fweb%2Fwiklou.git ApiQueryLinks: Remove index forcing Appears to have been added for T16102, which has hopefully been fixed since. Let's try it and see if queries break. Bug: T162774 Change-Id: If60442b9c8856b80a071ed9df830f9a3397218c9 --- diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index d29a763fe8..4b340912e8 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -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__ );