[SERVER-25688] Allow $bucketAuto stage to spill to disk if memory usage exceeds 100MB Created: 18/Aug/16  Updated: 02/Dec/16  Resolved: 13/Sep/16

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 3.3.14

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: Charlie Swanson
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-9444 Docs for SERVER-25688: Allow $bucketA... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2016-09-19
Participants:

 Description   

SERVER-24152 added the $bucketAuto stage, but did not add the ability to spill to disk. It will currently error if the memory usage exceeds 100MB.

If the user has specified allowDiskUse: true to the aggregate command, the $bucketAuto stage should be able to take advantage of the sorter to spill to disk.

All that should be required is modifying this code to appropriately set SortOptions.extSortAllowed appropriately based off of pExpCtx->extSortAllowed and pExpCtx->inRouter.



 Comments   
Comment by Githook User [ 13/Sep/16 ]

Author:

{u'username': u'cswanson310', u'name': u'Charlie Swanson', u'email': u'charlie.swanson@mongodb.com'}

Message: SERVER-25688 Allow $bucketAuto to spill to disk.
Branch: master
https://github.com/mongodb/mongo/commit/4f211b037feac1d4c80d65df5a0fae12fcac1e4c

Generated at Thu Feb 08 04:09:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.