chore(export): increase batch size to 10,000

This commit is contained in:
Ashhhleyyy 2022-08-06 23:52:49 +01:00
parent 1bf918aa22
commit 89e3da539f
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -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);