Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-6766

Need clarification on which is more performant: updateOne or updateMany for db.collection.bulkWrite.txt

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.rice@searshc.com Kevin Rice
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 14 weeks, 1 day ago