From 9a1b578c9902465799ed04e090f5ee362ad4fb07 Mon Sep 17 00:00:00 2001 From: Henrique Pinheiro Date: Sun, 5 Nov 2023 17:03:10 -0300 Subject: [PATCH] chore(mongo-import): Volta a fazer em incrementos de 5k Maior que isso estava falhando :( --- src/ocorrencia.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocorrencia.ts b/src/ocorrencia.ts index fc0eed3..87dc4c8 100644 --- a/src/ocorrencia.ts +++ b/src/ocorrencia.ts @@ -12,7 +12,7 @@ const collection = client.database('dwc2json').collection('ocorrencias') console.debug('Cleaning collection') console.log(await collection.deleteMany({})) -const CHUNK_SIZE = 15000; +const CHUNK_SIZE = 5000; for (const url of refUrls) { if (!url) continue console.debug(`Processing ${url}`)