http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89645
Revision: 89645
Author: reedy
Date: 2011-06-07 13:43:31 +0000 (Tue, 07 Jun 2011)
Log Message:
-----------
Followup r89589, r89588
Add index hint to remove temporary from query
Modified Paths:
--------------
trunk/extensions/CodeReview/api/ApiQueryCodePaths.php
Modified: trunk/extensions/CodeReview/api/ApiQueryCodePaths.php
===================================================================
--- trunk/extensions/CodeReview/api/ApiQueryCodePaths.php 2011-06-07
12:42:28 UTC (rev 89644)
+++ trunk/extensions/CodeReview/api/ApiQueryCodePaths.php 2011-06-07
13:43:31 UTC (rev 89645)
@@ -43,6 +43,7 @@
$db = $this->getDB();
$this->addWhere( 'cp_path ' . $db->buildLike( $params['path'],
$db->anyString() ) );
+ $this->addOption( 'USE INDEX', 'repo_path' );
$this->addOption( 'LIMIT', 10 );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs