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

Stats for aggregation overcounted in Top

    • Query
    • ALL
    • Hide

      In the shell run

      db.toptest.insert({a:1})
      db.adminCommand("top")
      

      The entry for toptest should show a command count of 0. Then run

      db.toptest.aggregate([{$match: {}}])
      db.adminCommand("top")
      

      And now the toptest entry should show a command count of 2.

      Show
      In the shell run db.toptest.insert({a:1}) db.adminCommand( "top" ) The entry for toptest should show a command count of 0. Then run db.toptest.aggregate([{$match: {}}]) db.adminCommand( "top" ) And now the toptest entry should show a command count of 2.

      Top records some aggregation pipelines as two commands instead of one.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: