From 03765c989ffc48911505cfe492744c7c684f1b08 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sat, 7 Apr 2007 08:44:52 +0000 Subject: [PATCH] force cl_sortkey index --- includes/CategoryPage.php | 1 + 1 file changed, 1 insertion(+) 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; -- 2.20.1