Commit the batch without results
This commit is contained in:
parent
9935b433dc
commit
dda96457b2
|
@ -144,7 +144,7 @@ class FilesDB {
|
|||
int batchCounter = 0;
|
||||
for (File file in files) {
|
||||
if (batchCounter == 400) {
|
||||
await batch.commit();
|
||||
await batch.commit(noResult: true);
|
||||
batch = db.batch();
|
||||
batchCounter = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue