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

Add 'allowDiskUse' option to find command

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Minor Change
    • Query 2019-07-15, Query 2019-07-29

      This is preparatory work for supporting external sort for the find command (SERVER-7694). Further work will be required for the allowDiskUse option to actually take effect. This ticket just tracks the work necessary to parse the option and set it on QueryRequest, and then to plumb the resulting boolean flag down to SortStage.

      The allowDiskUse flag is optional, and must be a boolean if present. If not present, it defaults to false. These behaviors should be identical to the allowDiskUse flag accepted by the aggregate command.

      Since allowDiskUse:true won't actually do anything until further engineering work is completed, the find command should fail if allowDiskUse:true is specified and enableTestCommands is false. This ensures that users cannot access the feature until it is fully implemented. This restriction will be lifted once SERVER-7694 is implemented.

      We will also need to add a shell helper for setting the allowDiskUse flag. That work can be split off into a separate ticket if it doesn't fit naturally here.

            Assignee:
            misha.ivkov@mongodb.com Mikhail Ivkov (Inactive)
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: