ApiQueryLinks: Remove index forcing
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 12 Apr 2017 14:07:03 +0000 (10:07 -0400)
committerJcrespo <jcrespo@wikimedia.org>
Wed, 6 Sep 2017 08:53:44 +0000 (08:53 +0000)
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

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__ );