(loader) Reset count after executing batch in DomainLoaderService

This should greatly speed up starting the loader process.
This commit is contained in:
Viktor Lofgren 2023-12-18 12:43:53 +01:00
parent a742503508
commit b7ed0ce537

View File

@ -152,6 +152,7 @@ public class DomainLoaderService {
statement.addBatch(); statement.addBatch();
if (++count > 1000) { if (++count > 1000) {
count = 0;
statement.executeBatch(); statement.executeBatch();
} }
} }