Followup r83849, fix join to be on indexed user_name

This commit is contained in:
Sam Reed 2011-03-14 11:07:58 +00:00
parent c5b4e5be2c
commit 82dd198876

View file

@ -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' );