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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.4.3
    • Component/s: Write Ops
    • None
    • Storage Execution
    • Fully Compatible

      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 
      }
      

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            felix2626 adrien petel
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: