From: Roan Kattouw Date: Tue, 13 May 2008 14:01:40 +0000 (+0000) Subject: Force the pl_from/tl_from index here, as there are reasons to believe MySQL 4 selects... X-Git-Tag: 1.31.0-rc.0~47668 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=ba0f2974df812bc6e1f9e7972b616ed5b9d689f0;p=lhc%2Fweb%2Fwiklou.git Force the pl_from/tl_from index here, as there are reasons to believe MySQL 4 selects the wrong index here (see bug 14102) --- diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index b27be256ee..af2acc2a3e 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -96,6 +96,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { // pl_namespace is always constant $order[] = "{$this->prefix}_title"; $this->addOption('ORDER BY', implode(", ", $order)); + $this->addOption('USE INDEX', "{$this->prefix}_from"); $db = $this->getDB(); $res = $this->select(__METHOD__);