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

getMore on views are logged differently than on find

    XMLWordPrintableJSON

Details

    • Query Execution
    • ALL

    Description

      Views log find as command on the view but getMore as having originatingCommand on the underlying collection. Could lead to confusion when searching logs.

      2017-01-24T15:53:09.023-0600 I COMMAND  [conn341] command bestbuy.prodview appName: "MongoDB Shell" command: find { find: "prodview", filter: { type: "BlackTie" } } planSummary: IXSCAN { type: 1.0, customerReviewCount: -1.0 } cursorid:22217593970 keysExamined:141 docsExamined:141 numYields:1 nreturned:101 reslen:10113431 locks:{ Global: { acquireCount: { r: 14 } }, Database: { acquireCount: { r: 7 } }, Collection: { acquireCount: { r: 6 } } } protocol:op_command 20ms
      2017-01-24T15:53:09.050-0600 I COMMAND  [conn341] command bestbuy.prodview appName: "MongoDB Shell" command: getMore { getMore: 22217593970, collection: "prodview" } originatingCommand: { aggregate: "products", pipeline: [ { $match: { type: "BlackTie" } } ], cursor: { batchSize: 101 } } planSummary: IXSCAN { type: 1.0, customerReviewCount: -1.0 } cursorid:22217593970 keysExamined:127 docsExamined:127 numYields:0 nreturned:144 reslen:16741683 locks:{ Global: { acquireCount: { r: 8 } }, Database: { acquireCount: { r: 4 } }, Collection: { acquireCount: { r: 4 } } } protocol:op_command 16ms
      2017-01-24T15:53:09.077-0600 I COMMAND  [conn341] command bestbuy.prodview appName: "MongoDB Shell" command: getMore { getMore: 22217593970, collection: "prodview" } originatingCommand: { aggregate: "products", pipeline: [ { $match: { type: "BlackTie" } } ], cursor: { batchSize: 101 } } planSummary: IXSCAN { type: 1.0, customerReviewCount: -1.0 } cursorid:22217593970 keysExamined:118 docsExamined:118 numYields:0 nreturned:132 reslen:16639805 locks:{ Global: { acquireCount: { r: 8 } }, Database: { acquireCount: { r: 4 } }, Collection: { acquireCount: { r: 4 } } } protocol:op_command 16ms
      

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: