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

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Shell
    • Labels:

      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
          William Byrne III

          Activity

            People

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

              Dates

              Created:
              Updated: