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

XMLWordPrintableJSON

    • Fully Compatible
    • Query 2016-09-19
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: