Skip to content

Commit

Permalink
chore(mongo-import): Volta a fazer em incrementos de 5k
Browse files Browse the repository at this point in the history
Maior que isso estava falhando :(
  • Loading branch information
Phenome committed Nov 5, 2023
1 parent cef87ea commit 9a1b578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocorrencia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit 9a1b578

Please sign in to comment.