[#4028] Loader API's onDuplicateKeyIgnore() executes inefficient SELECT

This commit is contained in:
lukaseder 2015-02-05 13:04:28 +01:00
parent 24134dd65e
commit 53b326a7bb

View File

@ -510,7 +510,7 @@ class LoaderImpl<R extends TableRecord<R>> implements
select.addConditions(getCondition(fields[i], row[i]));
try {
if (select.execute() > 0) {
if (create.fetchExists(select)) {
ignored++;
continue rows;
}