force cl_sortkey index
authorDomas Mituzas <midom@users.mediawiki.org>
Sat, 7 Apr 2007 08:44:52 +0000 (08:44 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sat, 7 Apr 2007 08:44:52 +0000 (08:44 +0000)
includes/CategoryPage.php

index 7fd3dbb..356f9ea 100644 (file)
@@ -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;