From: Bryan Tong Minh Date: Thu, 8 Jan 2009 22:02:16 +0000 (+0000) Subject: Force the use of the PRIMARY key rather than the name_title in the second query. X-Git-Tag: 1.31.0-rc.0~43493 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=24a930a13e8dd7a3070b85f5deeae6e67c3329dd;p=lhc%2Fweb%2Fwiklou.git Force the use of the PRIMARY key rather than the name_title in the second query. --- diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index f60e8246fb..83f8c5b0ec 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -169,6 +169,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { $this->addWhereFld('page_is_redirect', 0); $this->addOption('LIMIT', $this->params['limit'] + 1); $this->addOption('ORDER BY', $this->bl_sort); + $this->addOption('USE INDEX', array('page' => 'PRIMARY')); } private function run($resultPageSet = null) {