Index: branches/wmf-deployment/extensions/FlaggedRevs/maintenance/updateStats.inc |
— | — | @@ -167,7 +167,7 @@ |
168 | 168 | 'GROUP BY' => 'rev_id', // stats are for each edit and ID is unique |
169 | 169 | 'ORDER BY' => 'rev_id ASC', // slight bias avoidance, if any |
170 | 170 | 'LIMIT' => $size, // sample size |
171 | | - 'USE INDEX' => array('flaggedrevs' => 'PRIMARY','logging' => 'page_time') |
| 171 | + 'USE INDEX' => array('page' => 'PRIMARY','flaggedrevs' => 'PRIMARY','logging' => 'page_time') |
172 | 172 | ), |
173 | 173 | array( // Assumes title unchanged (reasonable). Double-check NS though. |
174 | 174 | 'page' => array('INNER JOIN',array('page_id = rev_page','page_namespace' => $wgFlaggedRevsNamespaces)), |