Index: trunk/extensions/CodeReview/api/ApiQueryCodePaths.php |
— | — | @@ -43,6 +43,7 @@ |
44 | 44 | $db = $this->getDB(); |
45 | 45 | |
46 | 46 | $this->addWhere( 'cp_path ' . $db->buildLike( $params['path'], $db->anyString() ) ); |
| 47 | + $this->addOption( 'USE INDEX', 'repo_path' ); |
47 | 48 | |
48 | 49 | $this->addOption( 'LIMIT', 10 ); |
49 | 50 | |