In a PyMongo application, what happens when you use 'insert_many' with 'ordered=False'?
Trap 1: The driver ignores all errors.
Errors are still captured in the BulkWriteResult.
Trap 2: Documents are inserted in parallel.
They are sent in a batch, but not necessarily parallelized.
Trap 3: The operation stops at the first error.
This is the behavior when ordered is True (default).
- A
The driver ignores all errors.
Why wrong: Errors are still captured in the BulkWriteResult.
- B
Documents are inserted in parallel.
Why wrong: They are sent in a batch, but not necessarily parallelized.
- C
The driver attempts to insert all documents regardless of individual failures.
Unordered inserts continue processing even if one document fails.
- D
The operation stops at the first error.
Why wrong: This is the behavior when ordered is True (default).