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

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Server Tooling & Methods

      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.

        1. fr2.js
          0.8 kB
          William Byrne III

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

              Created:
              Updated: