[SERVER-44772] Add 'allowDiskUse()' function to "explain" cursors in shell Created: 21/Nov/19  Updated: 29/Oct/23  Resolved: 06/Dec/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Improvement Priority: Major - P3
Reporter: Justin Seyster Assignee: Sophie Saskin
Resolution: Fixed Votes: 0
Labels: neweng, qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2019-12-16
Participants:

 Description   

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



 Comments   
Comment by Githook User [ 06/Dec/19 ]

Author:

{'email': 'sophie.saskin@mongodb.com', 'name': 'Sophie Saskin'}

Message: SERVER-44772 Add 'allowDiskUse()' function to explain cursors in shell
Branch: master
https://github.com/mongodb/mongo/commit/c45ad5a6a54f04270a6abc40d0d71104b8f9c21b

Comment by Justin Seyster [ 21/Nov/19 ]

The work should consist of adding 'allowDiskUse' to the delegationFuncNames list in DBExplainQuery, as well as any necessary testing.

Generated at Thu Feb 08 05:06:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.