Stats for aggregation overcounted in Top

XMLWordPrintableJSON

    • 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.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

              Assignee:
              Backlog - Query Team (Inactive)
              Reporter:
              Kevin Albertson
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: