Force the pl_from/tl_from index here, as there are reasons to believe MySQL 4 selects...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 13 May 2008 14:01:40 +0000 (14:01 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 13 May 2008 14:01:40 +0000 (14:01 +0000)
includes/api/ApiQueryLinks.php

index b27be25..af2acc2 100644 (file)
@@ -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__);