r58194 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58193‎ | r58194 | r58195 >
Date:14:41, 27 October 2009
Author:daniel
Status:deferred
Tags:
Comment:
force index
Modified paths:
  • /trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/store/builder/DatabaseGlobalConceptStoreBuilder.java (modified) (history)

Diff [purge]

Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/store/builder/DatabaseGlobalConceptStoreBuilder.java
@@ -251,7 +251,8 @@
252252 String lang = localdb.getCorpus().getLanguage();
253253
254254 String sql = "DELETE FROM R "
255 - + " USING "+langlinkTable.getSQLName()+" as R JOIN "+aboutTable.getSQLName()+" as A "
 255+ + " USING "+langlinkTable.getSQLName()+" as R force index(language_target) "
 256+ + " JOIN "+aboutTable.getSQLName()+" as A force index(resource_name) "
256257 + " ON R.language = "+database.quoteString(lang)+" "
257258 + " AND R.target = A.resource_name ";
258259
@@ -401,7 +402,8 @@
402403 " R.global_concept, " +
403404 " 1 " +
404405 " FROM "+langlinkTable.getSQLName()+" as LL " +
405 - " JOIN "+originTable.getSQLName()+" as R ON R.lang = LL.language AND R.local_concept_name = LL.target";
 406+ " JOIN "+originTable.getSQLName()+" as R force index(lang_name) " +
 407+ " ON R.lang = LL.language AND R.local_concept_name = LL.target";
406408
407409 String suffix = " WHERE LL.concept != R.global_concept "
408410 +" ON DUPLICATE KEY UPDATE langref = langref + VALUES(langref)";

Status & tagging log