From: Aaron Schulz Date: Sun, 17 Feb 2008 20:13:00 +0000 (+0000) Subject: Give usertext so that user,timestamp index can be used. Should require less to scan... X-Git-Tag: 1.31.0-rc.0~49456 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=dc46a2e065b553d8dd6585a390a30a39e0d634e6;p=lhc%2Fweb%2Fwiklou.git Give usertext so that user,timestamp index can be used. Should require less to scan that just the timestamp index. --- diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index 349c88ec58..12f3b2326f 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -169,12 +169,12 @@ CONTROL; $db = wfGetDB( DB_SLAVE ); $change = RecentChange::newFromConds( array( - // Add redundant timestamp condition so we can use the - // existing index + // Add redundant user,timestamp condition so we can use the existing index + 'rc_user_text' => $this->mNewRev->getRawUserText(), 'rc_timestamp' => $db->timestamp( $this->mNewRev->getTimestamp() ), 'rc_this_oldid' => $this->mNewid, 'rc_last_oldid' => $this->mOldid, - 'rc_patrolled' => 0, + 'rc_patrolled' => 0 ), __METHOD__ );