Reverting...this broke the site. Massive temporary tables and filesort eating up...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 19 Dec 2006 19:44:55 +0000 (19:44 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 19 Dec 2006 19:44:55 +0000 (19:44 +0000)
Greg, please test these things on MySQL, using an 'EXPLAIN' on the query.
You have been warned before. We may have to start requiring PG compatibility commits to be reviewed before commit.

includes/SpecialCategories.php

index 46601ef..89cff20 100644 (file)
@@ -33,7 +33,7 @@ class CategoriesPage extends QueryPage {
                $s= "SELECT 'Categories' as type,
                                {$NScat} as namespace,
                                cl_to as title,
-                               cl_to as value,
+                               1 as value,
                                COUNT(*) as count
                           FROM $categorylinks
                           GROUP BY 1,2,3,4";