Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/store/builder/DatabaseGlobalConceptStoreBuilder.java |
— | — | @@ -233,7 +233,8 @@ |
234 | 234 | DatabaseTable langlinkTable = database.getTable("langlink"); |
235 | 235 | String lang = localdb.getCorpus().getLanguage(); |
236 | 236 | |
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) " |
238 | 239 | + " ON R.language = "+database.quoteString(lang)+" " |
239 | 240 | + " AND R.target = A.resource_name " |
240 | 241 | + " SET R.target = A.concept_name "; |