chore(export): increase batch size to 10,000
This commit is contained in:
parent
1bf918aa22
commit
89e3da539f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue