From: Domas Mituzas Date: Sat, 7 Apr 2007 08:44:52 +0000 (+0000) Subject: force cl_sortkey index X-Git-Tag: 1.31.0-rc.0~53458 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=03765c989ffc48911505cfe492744c7c684f1b08;p=lhc%2Fweb%2Fwiklou.git force cl_sortkey index --- diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 7fd3dbb4f9..356f9ea288 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -202,6 +202,7 @@ class CategoryViewer { #+ $pageCondition, __METHOD__, array( 'ORDER BY' => $this->flip ? 'cl_sortkey DESC' : 'cl_sortkey', + 'USE INDEX' => 'cl_sortkey', 'LIMIT' => $this->limit + 1 ) ); $count = 0;