From 5251c2af90a50a28366bb1cd2570a01c037dbe41 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 8 Apr 2008 09:18:38 +0000 Subject: [PATCH] Tweak - title index better than user in these cases most likely --- includes/LogEventsList.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 3dada77537..3db0c46ca0 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -494,10 +494,10 @@ class LogPager extends ReverseChronologicalPager { global $wgAllowLogDeletion; $log_id = $wgAllowLogDeletion ? 'log_id' : '0 AS log_id'; # Don't use the wrong logging index - if( $this->user ) { - $index = array( 'USE INDEX' => array( 'logging' => 'user_time' ) ); - } else if( $this->title || $this->pattern ) { + if( $this->title || $this->pattern ) { $index = array( 'USE INDEX' => array( 'logging' => 'page_time' ) ); + } else if( $this->user ) { + $index = array( 'USE INDEX' => array( 'logging' => 'user_time' ) ); } else if( $this->type ) { $index = array( 'USE INDEX' => array( 'logging' => 'type_time' ) ); } else { -- 2.20.1