Lecture: Cursor-like stages: Part 2

In this tutorial, By default, the $sort will only take up to 100 megabytes of RAM.
For more than that, we will need to provide the allowDiskUse option as equal true to our pipeline.
I just had a question that is there a way or is it possible that we can change the limit of 100mb RAM according to us, say 200mb or more than that??

Hey @Sourabh_Karmarkar

I do not believe this is possible. From the doc

** Memory Restrictions**

Changed in version 2.6
Pipeline stages have a limit of 100 megabytes of RAM. If a stage exceeds this limit, MongoDB will produce an error. To allow for the handling of large datasets, use the allowDiskUse option to enable aggregation pipeline stages to write data to temporary files.