Skip to content

Commit

Permalink
Try smaller batches
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsilvestre committed Dec 10, 2023
1 parent 31c1126 commit 15f2b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prisma/external/seedUnihan15.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function seedUnihan15(prisma: PrismaClient, force = false) {
});
});

await inBatchesOf(10000, dbInput, async (batch) => {
await inBatchesOf(500, dbInput, async (batch) => {
const data = Array.from(batch, ([id, fields]) => ({
id,
kDefinition: fields.kDefinition || null,
Expand Down

0 comments on commit 15f2b4d

Please sign in to comment.