From 54f8710556e5144841c9b11940e9a10bd71e12d7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 10 Apr 2008 17:55:12 +0000 Subject: [PATCH] force index, per domas --- includes/Title.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 673ee16180..73b7ea53fb 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2852,6 +2852,7 @@ class Title { /** * Get the number of revisions between the given revision IDs. + * Used for diffs and other things that really need it. * * @param integer $old Revision ID. * @param integer $new Revision ID. @@ -2863,7 +2864,8 @@ class Title { 'rev_page = ' . intval( $this->getArticleId() ) . ' AND rev_id > ' . intval( $old ) . ' AND rev_id < ' . intval( $new ), - __METHOD__ ); + __METHOD__, + array( 'USE INDEX' => 'PRIMARY' ) ); } /** -- 2.20.1