From 89e3da539fd0feccb0ad0dafab0c014743d9c09b Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sat, 6 Aug 2022 23:52:49 +0100 Subject: [PATCH] chore(export): increase batch size to 10,000 --- src/export-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/export-data.ts b/src/export-data.ts index 480e940..272ff91 100644 --- a/src/export-data.ts +++ b/src/export-data.ts @@ -27,7 +27,7 @@ import { prisma } from './db'; const index = meilisearch.index('comic_pages'); - const batchSize = 100; + const batchSize = 10_000; for (let i = 0; i < Math.ceil(pages.length / batchSize); i++) { const startIndex = i * batchSize; const endIndex = Math.min(pages.length, (i + 1) * batchSize);