From: Chad Horohoe Date: Tue, 15 Jul 2008 15:43:43 +0000 (+0000) Subject: Remove $use_index that has been commented out for about 31000 revisions. Quick testin... X-Git-Tag: 1.31.0-rc.0~46503 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=commitdiff_plain;h=df2ccbfac861de690b0da2d86d4d7abcafe8b4f0;p=lhc%2Fweb%2Fwiklou.git Remove $use_index that has been commented out for about 31000 revisions. Quick testing shows forcing use of rev_timestamp or page_timestamp indexes to be slower, so there's no point in using them instead. --- diff --git a/includes/specials/SpecialAncientpages.php b/includes/specials/SpecialAncientpages.php index 724d34b152..188ad9148b 100644 --- a/includes/specials/SpecialAncientpages.php +++ b/includes/specials/SpecialAncientpages.php @@ -25,7 +25,6 @@ class AncientPagesPage extends QueryPage { $db = wfGetDB( DB_SLAVE ); $page = $db->tableName( 'page' ); $revision = $db->tableName( 'revision' ); - #$use_index = $db->useIndexClause( 'cur_timestamp' ); # FIXME! this is gone $epoch = $wgDBtype == 'mysql' ? 'UNIX_TIMESTAMP(rev_timestamp)' : 'EXTRACT(epoch FROM rev_timestamp)'; return