Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php |
— | — | @@ -263,7 +263,7 @@ |
264 | 264 | ), |
265 | 265 | array( 'afshl_ts' => $row->afshl_ts ), |
266 | 266 | __METHOD__, |
267 | | - array( "ORDER BY" => "afshl_avg_overall" ) // FIXME unindexed |
| 267 | + array( "ORDER BY" => "afshl_avg_overall" ) |
268 | 268 | ); |
269 | 269 | $highs_lows = $this->buildHighsAndLows( $result ); |
270 | 270 | $wgMemc->set( $key, $highs_lows, 86400 ); |
Index: trunk/extensions/ArticleFeedback/sql/AddStatsHighsLowsTable.sql |
— | — | @@ -8,4 +8,4 @@ |
9 | 9 | -- timestamp of insertion job |
10 | 10 | afshl_ts binary(14) NOT NULL |
11 | 11 | ) /*$wgDBTableOptions*/; |
12 | | -CREATE INDEX /*i*/ afshl_timestamp ON /*_*/article_feedback_stats_highs_lows (afshl_ts); |
| 12 | +CREATE INDEX /*i*/ afshl_ts_avg_overall ON /*_*/article_feedback_stats_highs_lows (afshl_ts, afshl_avg_overall); |