* Specify USE INDEX on Allpages chunk queries, sometimes gets lost
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 21 Jul 2005 12:53:29 +0000 (12:53 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 21 Jul 2005 12:53:29 +0000 (12:53 +0000)
  due to bogus optimization

RELEASE-NOTES
includes/SpecialAllpages.php

index 5820eee..93cbf8e 100644 (file)
@@ -584,7 +584,8 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new.
   inverse checkbox, use friendlier relative offsets in index build
 * Bring back "Chick" skin for mobile devices. It needs testing.
 * Fix spelling of $wgForwardSearchUrl in DefaultSettings.php
-
+* Specify USE INDEX on Allpages chunk queries, sometimes gets lost
+  due to bogus optimization
 
 === Caveats ===
 
index a7dae9d..26e7434 100644 (file)
@@ -228,8 +228,9 @@ function indexShowChunk( $namespace = NS_MAIN, $from, $including = false ) {
                ),
                $fname,
                array(
-                       'ORDER BY' => 'page_title',
-                       'LIMIT' => $indexMaxperpage + 1
+                       'ORDER BY'  => 'page_title',
+                       'LIMIT'     => $indexMaxperpage + 1,
+                       'USE INDEX' => 'name_title',
                )
        );