Fixes for r42735:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 28 Oct 2008 18:42:49 +0000 (18:42 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 28 Oct 2008 18:42:49 +0000 (18:42 +0000)
* option's name is USE INDEX
* use the index is user_timestamp (per domas)
* force it on the 'revision' table, not 'page'

includes/api/ApiQueryUserContributions.php

index 6a90658..a7bd29a 100644 (file)
@@ -177,7 +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' );
+               $this->addOption( 'USE INDEX', array( 'revision' => 'user_timestamp' ) );
 
                // Mandatory fields: timestamp allows request continuation
                // ns+title checks if the user has access rights for this page