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

listCommands should provide commands-return-cursor information

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • 2.5.3
    • Usability
    • Query Optimization

    Description

      The listCommands command lists all available commands, and for "special things" it returns a dedicate field for it.
      These special things include adminOnly and slaveOk.

      A command returning a cursor should be considered as a special behaviour and be marked so.

      		"aggregate" : {
      			"help" : "{ pipeline : [ { <data-pipe-op>: {...}}, ... ] }",
      			"lockType" : 0,
      			"slaveOk" : false,
      			"adminOnly" : false,
      			"slaveOverrideOk" : true
      		},

      I'd like to have a "top level field" there called cursor: true/false to clearly differentiate this command from others as it has very specific capabilities.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: