From: Domas Mituzas Date: Mon, 17 Oct 2005 17:30:10 +0000 (+0000) Subject: force page_len index scan, where condition is not that important when a filesort... X-Git-Tag: 1.6.0~1401 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=cbe8317d074b88c2f575297b86f8746a69b1af97;p=lhc%2Fweb%2Fwiklou.git force page_len index scan, where condition is not that important when a filesort would sort whole table... --- diff --git a/includes/SpecialShortpages.php b/includes/SpecialShortpages.php index fb18a7d5da..0bbaf65b9b 100644 --- a/includes/SpecialShortpages.php +++ b/includes/SpecialShortpages.php @@ -43,7 +43,7 @@ class ShortPagesPage extends QueryPage { page_namespace as namespace, page_title as title, page_len AS value - FROM $page + FROM $page FORCE INDEX (page_len) WHERE page_namespace=".NS_MAIN." AND page_is_redirect=0"; }