-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Replication
-
Fully Compatible
-
Repl 2023-11-13
See https://mongodb.slack.com/archives/C035ZJL6CQN/p1692638285661919 for more context
We originally added numErrors as a summary field so the driver wouldn't have to iterate the cursor to see if any errors occurred. We want to provide the same for them for nInserted, nMatched, nModified, nUpserted, nDeleted so the driver can choose to not request a cursor (batchSize 0) and only return summary fields as an API option
This ticket is to support these fields on both mongod and mongos
This should also change numErorrs to nErrors for consistency with the new fields
As part of this we should add singleBatch as an option to the bulkWrite command which will act the same as for other cursor commands (like find) where we only return the firstBatch and do not save the remaining results in a cursor to be fetched later
- is related to
-
SERVER-83138 nMatched in bulkWrite response should not count upserted documents
- Closed