r46981 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46980‎ | r46981 | r46982 >
Date:16:25, 7 February 2009
Author:aaron
Status:deferred
Tags:
Comment:
Add force index list. I would like to have just 'revid', but someone decided to swap PRIMARY and revid on new installs, so both are listed.
Modified paths:
  • /trunk/extensions/FlaggedRevs/maintenance/updateStats.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/maintenance/updateStats.inc
@@ -160,7 +160,7 @@
161161 'GROUP BY' => 'rev_id',
162162 'ORDER BY' => 'rev_id ASC', // slight bias avoidance, if any
163163 'LIMIT' => $size, // sample size
164 - 'USE INDEX' => array('flaggedrevs' => 'PRIMARY','logging' => 'page_time')
 164+ 'USE INDEX' => array('revision' => array('PRIMARY','rev_id'),'flaggedrevs' => 'PRIMARY','logging' => 'page_time')
165165 )
166166 );
167167 # Actually run the query...

Status & tagging log