Removed more FORCE INDEX clauses for logging
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 2 Oct 2013 17:37:06 +0000 (10:37 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 2 Oct 2013 18:30:33 +0000 (18:30 +0000)
* Same reasons as 7003a7c5e825f391c1a83f8e46cdf332a228d874

bug: 54876
Change-Id: I743bd21e81395c2866b4241730caa8c5990cc73f

includes/logging/LogPager.php

index f8403ca..09ae3b8 100644 (file)
@@ -249,13 +249,6 @@ class LogPager extends ReverseChronologicalPager {
                                # no duplicate log rows. Otherwise, we need to remove the duplicates.
                                $options[] = 'DISTINCT';
                        }
-               # Avoid usage of the wrong index by limiting
-               # the choices of available indexes. This mainly
-               # avoids site-breaking filesorts.
-               } elseif ( $this->title || $this->pattern || $this->performer ) {
-                       $index['logging'] = array( 'page_time', 'user_time', 'log_user_type_time' );
-               } elseif ( count( $this->types ) == 1 ) {
-                       $index['logging'] = 'type_time'; // @TODO: sucks for change tags
                }
                if ( count( $index ) ) {
                        $options['USE INDEX'] = $index;