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

XMLWordPrintableJSON

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

      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

            Assignee:
            Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            William Byrne III
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: