i get large data array of object about 3mb and iterate it but the issue is that is giving me memory error.
below is my code
stocks.map((value)=>{
stocksCrudService.updateDocumentByKeySet({
stocks_id: value.id
}, {
stocks_id: value.id,
exchange: value.exchange,
name: value.name,
symbol: value.symbol,
tradable: value.tradable,
status: value.status
}).then((response)=>{
console.log(response)
}).catch((err)=>{
console.log(err)
})
any best solution?