(loader) Reset count after executing batch in DomainLoaderService
This should greatly speed up starting the loader process.
This commit is contained in:
parent
a742503508
commit
b7ed0ce537
@ -152,6 +152,7 @@ public class DomainLoaderService {
|
|||||||
statement.addBatch();
|
statement.addBatch();
|
||||||
|
|
||||||
if (++count > 1000) {
|
if (++count > 1000) {
|
||||||
|
count = 0;
|
||||||
statement.executeBatch();
|
statement.executeBatch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user