From bc536bcbf7b99186071f0d83584f28038cf0db67 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 24 Jun 2003 18:52:53 +0000 Subject: [PATCH] Timestamp index is sufficient for ancientpages, don't need a custom one --- includes/SpecialAncientpages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialAncientpages.php b/includes/SpecialAncientpages.php index dbdc5eb148..95f8334ab4 100644 --- a/includes/SpecialAncientpages.php +++ b/includes/SpecialAncientpages.php @@ -8,7 +8,7 @@ function wfSpecialAncientpages() list( $limit, $offset ) = wfCheckLimits(); $sql = "SELECT cur_title,cur_user,cur_user_text,cur_comment," . - "cur_timestamp FROM cur USE INDEX (namespace_redirect_timestamp) " . + "cur_timestamp FROM cur USE INDEX (cur_timestamp) " . "WHERE cur_namespace=0 AND cur_is_redirect=0 " . " ORDER BY cur_timestamp LIMIT {$offset}, {$limit}"; $res = wfQuery( $sql, $fname ); -- 2.20.1