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

make `db.createView()` command return the number of documents in the view

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.4.3
    • Write Ops
    • None
    • Storage Execution
    • Fully Compatible

    Description

      It would be nice if the creation of a view could return the number of documents in the view (as for insert/remove/update which provides stats on the performed operation )

      for example, it could looks like this:

      > db.createView("out", "test", {$match: {field: "random"}})
      { 
           "ok" : 1,
           "nDocsInView": 254 
      }
      

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            felix2626 adrien petel
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: