Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit c0d585f

Browse files
committed
chore: increase batch size
1 parent cb32472 commit c0d585f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/master/src/util/updateScience.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default async function () {
4747
}));
4848

4949
// Batch the bulk operations for better performance
50-
const BATCH_SIZE = 1000;
50+
const BATCH_SIZE = 10000;
5151
for (let i = 0; i < bulkOps.length; i += BATCH_SIZE) {
5252
const batch = bulkOps.slice(i, i + BATCH_SIZE);
5353
const res = await mongo

0 commit comments

Comments
 (0)