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

listCommands should provide commands-return-cursor information

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.5.3
    • Component/s: Usability
    • Labels:
    • Query Optimization

      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.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: