[#4028] Loader API's onDuplicateKeyIgnore() executes inefficient SELECT
This commit is contained in:
parent
24134dd65e
commit
53b326a7bb
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user