Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26612

Add reporting of the number of documents found to the Bulk find() operations

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Shell

    Description

      Currently bulk operations like this:

      var ubo =  db.collName.initializeUnorderedBulkOp();
      for (var h=0; h<newDocArray.length; h++) {
        bulkr.find({"_id":newDocArray[h]._id}).replaceOne(newDocArray[h]);
      }
      ubo.execute();
      

      report nothing in the {{BulkWriteResult object }} object for documents in the newDocArray whose _id values don't match any documents in the collName collection. This feature request is to add reporting on the number of documents found by each operation.

      Attachments

        1. fr2.js
          0.8 kB

        Activity

          People

            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            william.byrne@mongodb.com William Byrne III
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: