[DOCS-6766] Need clarification on which is more performant: updateOne or updateMany for db.collection.bulkWrite.txt Created: 09/Dec/15  Updated: 30/Oct/23  Resolved: 01/Nov/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Kevin Rice Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: bite-sized
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.org/manual/reference/method/db.collection.bulkWrite/#db.collection.bulkWrite
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Referrer: https://docs.mongodb.org/manual/release-notes/3.2/
Screen Resolution: 1920 x 1080
repo: docs
source: reference/method/db.collection.bulkWrite


Participants:
Days since reply: 1 year, 14 weeks, 1 day ago
Epic Link: DOCSP-1769
Story Points: 0.25

 Description   

Would like a comment on which is faster for unordered bulkWrite - updateOne or updateMany.

In this case, I know I only have one record, so I don't care which one I perform. I'm wondering if there is a performance benefit / penalty for either of One vs. Many.



 Comments   
Comment by Education Bot [ 01/Nov/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:52:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.