From 1cf75c3fb4254de820c37a9f9efb347ff6f5ce77 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 28 Oct 2008 18:42:49 +0000 Subject: [PATCH] Fixes for r42735: * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 6a90658a7e..a7bd29a85e 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -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 -- 2.20.1