Hi!
I need to query for multiple documents in my app concurrently, and I will use Model.Find() for that.
There will be around 5000 documents to get, process and then save.
I would rather avoid saving them one after another.
There is an option to make an array of requests as:
const requests = documents.map(doc => doc.save())
await Promise.allSettled(requests)
And it should make this task way quicker.
Is there an option to save multiple documents at once?
Unfortunately I’m not updating to the same values, so I need to query for documents, then update them one by one and on the end save them.