r57975 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57974‎ | r57975 | r57976 >
Date:15:01, 21 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
@@ -233,7 +233,8 @@
234234 DatabaseTable langlinkTable = database.getTable("langlink");
235235 String lang = localdb.getCorpus().getLanguage();
236236
237 - String sql = "UPDATE IGNORE "+langlinkTable.getSQLName()+" as R JOIN "+aboutTable.getSQLName()+" as A "
 237+ String sql = "UPDATE IGNORE "+langlinkTable.getSQLName()+" as R force index(language_target) "
 238+ + " JOIN "+aboutTable.getSQLName()+" as A force index(resource_name) "
238239 + " ON R.language = "+database.quoteString(lang)+" "
239240 + " AND R.target = A.resource_name "
240241 + " SET R.target = A.concept_name ";

Status & tagging log