From 15f2b4d7afbe168e09bfd3e313ee4fd7910fc302 Mon Sep 17 00:00:00 2001 From: justinsilvestre Date: Sun, 10 Dec 2023 12:44:03 +0100 Subject: [PATCH] Try smaller batches --- prisma/external/seedUnihan15.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prisma/external/seedUnihan15.ts b/prisma/external/seedUnihan15.ts index b77aa75a..5da0dd9d 100644 --- a/prisma/external/seedUnihan15.ts +++ b/prisma/external/seedUnihan15.ts @@ -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,