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

Add 'allowDiskUse()' function to "explain" cursors in shell

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Query 2019-12-16

      In the shell, it is possible to enable "allowDiskUse" for a find operation by calling the 'allowDiskUse()' function. However, if the find operation is part of an explain, 'allowDiskUse()' is no longer available.

      > db.test.explain().find({$sort: {x: 1}}).allowDiskUse()
      2019-11-21T12:10:23.017-0500 E  QUERY    [js] uncaught exception: TypeError: db.test.explain(...).find(...).allowDiskUse is not a function :
      @(shell):1:1
      

            Assignee:
            sophie.saskin@mongodb.com Sophie Saskin
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: