Followup r83849, fix join to be on indexed user_name
authorSam Reed <reedy@users.mediawiki.org>
Mon, 14 Mar 2011 11:07:58 +0000 (11:07 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 14 Mar 2011 11:07:58 +0000 (11:07 +0000)
includes/api/ApiQueryAllUsers.php

index e685e77..0376431 100644 (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' );