Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-452

Find cursor allowDiskUse() not implemented

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.7.7
    • Affects Version/s: 0.5.2, 0.6.1
    • Component/s: Query
    • Labels:
      None
    • Not Needed
    • Iteration Star Apple

      Problem Description

      Find cursor allowDiskUse() not implemented in mongosh 0.5.1 (THE DROP DOWN ABOVE DOESN'T ALLOW ME TO SELECT 0.5.1 HENCE HAVE SELECTED 0.5.2)

      This is required because the collection the find is being run on might actually be a view, and in my case the view is defined by an aggregation containing a $group which results in  the find() erroring with the '100M limit being exceeded' error, when not using allowDiskUse() . This works fine on Mongo Shell.

      Steps to Reproduce

      Run mongosh and run following command (db and collection don't have to exist:

      db.coll.find().allowDiskUse()
      TypeError: db.coll.find(...).allowDiskUse is not a function

      Expected Results

      Run in mongo shell and works fine

      Actual Results

      TypeError: db.coll.find(...).allowDiskUse is not a function

      Additional Notes

      List of cursor functions which should be supported: https://docs.mongodb.com/manual/reference/method/db.collection.find/

      Please also check that all other cursor functions are implemented.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            paul.done@mongodb.com Paul Done
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: