From df2ccbfac861de690b0da2d86d4d7abcafe8b4f0 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 15 Jul 2008 15:43:43 +0000 Subject: [PATCH] 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. --- includes/specials/SpecialAncientpages.php | 1 - 1 file changed, 1 deletion(-) 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 -- 2.20.1