From dc46a2e065b553d8dd6585a390a30a39e0d634e6 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 17 Feb 2008 20:13:00 +0000 Subject: [PATCH] Give usertext so that user,timestamp index can be used. Should require less to scan that just the timestamp index. --- includes/DifferenceEngine.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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__ ); -- 2.20.1