From: Sam Reed Date: Mon, 14 Mar 2011 11:07:58 +0000 (+0000) Subject: Followup r83849, fix join to be on indexed user_name X-Git-Tag: 1.31.0-rc.0~31427 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=82dd198876fc4b341c3188a5f10093e8f23386ca;p=lhc%2Fweb%2Fwiklou.git Followup r83849, fix join to be on indexed user_name --- diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index e685e7738f..0376431a1a 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -119,7 +119,7 @@ class ApiQueryAllUsers extends ApiQueryBase { $this->addTables( 'recentchanges' ); $this->addJoinConds( array( 'recentchanges' => array( - 'INNER JOIN', 'rc_user=user_id' + 'INNER JOIN', 'rc_user_text=user_name' ) ) ); $this->addFields( 'COUNT(*) AS recentedits' );