From 24a930a13e8dd7a3070b85f5deeae6e67c3329dd Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Thu, 8 Jan 2009 22:02:16 +0000 Subject: [PATCH] Force the use of the PRIMARY key rather than the name_title in the second query. --- includes/api/ApiQueryBacklinks.php | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.20.1