Use FORCE INDEX here, because Domas said we should :) All hail Domas.
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 28 Oct 2008 17:51:38 +0000 (17:51 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 28 Oct 2008 17:51:38 +0000 (17:51 +0000)
includes/api/ApiQueryUserContributions.php

index e7af8d8..6a90658 100644 (file)
@@ -177,6 +177,7 @@ class ApiQueryContributions extends ApiQueryBase {
                        $this->addWhereIf('rev_minor_edit != 0', isset ($show['minor']));
                }
                $this->addOption('LIMIT', $this->params['limit'] + 1);
+               $this->addOption( 'FORCE INDEX', 'user_name' );
 
                // Mandatory fields: timestamp allows request continuation
                // ns+title checks if the user has access rights for this page