r48240 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48239‎ | r48240 | r48241 >
Date:20:01, 9 March 2009
Author:daniel
Status:deferred
Tags:
Comment:
force indexs in buildLangMatch()
Modified paths:
  • /trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/store/builder/DatabaseWikiWordConceptStoreBuilder.java (modified) (history)

Diff [purge]

Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/store/builder/DatabaseWikiWordConceptStoreBuilder.java
@@ -373,8 +373,8 @@
374374 protected int buildLangMatch() throws PersistenceException {
375375 final String sql = "INSERT IGNORE INTO "+relationTable.getSQLName()+" (concept1, concept2, langmatch)" +
376376 " SELECT LL.concept, LR.concept, 1 " +
377 - " FROM "+langlinkTable.getSQLName()+" as LL " +
378 - " JOIN "+langlinkTable.getSQLName()+" as LR ON LR.language = LL.language AND LR.target = LL.target ";
 377+ " FROM "+langlinkTable.getSQLName()+" as LL force index(concept_language_target) " +
 378+ " JOIN "+langlinkTable.getSQLName()+" as LR force index(language_target) ON LR.language = LL.language AND LR.target = LL.target ";
379379
380380 final String where = " LL.concept != LR.concept ";
381381 final String rest = " ON DUPLICATE KEY UPDATE langmatch = langmatch + VALUES(langmatch) ";

Status & tagging log