Index: trunk/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -643,6 +643,7 @@ |
644 | 644 | // Search backwards for time > x queries |
645 | 645 | $order = (!$start && $end !== null) ? "ASC" : "DESC"; |
646 | 646 | $opts['ORDER BY'] = "oi_timestamp $order"; |
| 647 | + $opts['USE INDEX'] = array('oldimage' => 'oi_name_timestamp'); |
647 | 648 | |
648 | 649 | wfRunHooks( 'LocalFile::getHistory', array( &$this, &$tables, &$fields, |
649 | 650 | &$conds, &$opts, &$join_conds ) ); |