bulkWrite
bulkWrite is a database operation that enables executing multiple write operations in a single call to the database driver. It is designed to improve throughput and reduce network overhead when applying large numbers of writes.
bulkWrite accepts an array of write operations, often referred to as write models. Typical operation types
Execution can be configured as ordered or unordered. In ordered mode, operations are executed sequentially and
The result of a bulkWrite operation includes a summary such as insertedCount, matchedCount, modifiedCount, deletedCount, and
Atomicity and transactions: a single bulkWrite is not automatically atomic across all included operations. To guarantee