From: Aaron Schulz Date: Thu, 10 Apr 2008 17:55:12 +0000 (+0000) Subject: force index, per domas X-Git-Tag: 1.31.0-rc.0~48456 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=54f8710556e5144841c9b11940e9a10bd71e12d7;p=lhc%2Fweb%2Fwiklou.git force index, per domas --- 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' ) ); } /**