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

Allow $bucketAuto stage to spill to disk if memory usage exceeds 100MB

    • Fully Compatible
    • Query 2016-09-19

      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.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: