I have the following documents:
[{ \"_id\":1, \"name\":\"john\", \"position\":1 }, {\"_id\":2, \"name\":\"bob\", \"position\":2 }, {\"_id\":3,
You can use db.collection.bulkWrite() to perform multiple operations in bulk. It has been available since 3.2.
3.2
It is possible to perform operations out of order to increase performance.