I'm a coder who has worn a lot of hats, from individual contributor to lead engineer to "CTO" (yes, in quotes, make of that what you will!). I've plenty to learn and hopefully some to share as well.
I learned that each stage in a MongoDB aggregation pipeline can use a maximum of 100 MB RAM and will error if it needs more. There is an allowDiskUse option you can enable to make it use temporary files on disk to exceed that limit. Though optimizing the pipeline is a better solution when possible!
I learned that each stage in a MongoDB aggregation pipeline can use a maximum of 100 MB RAM and will error if it needs more. There is an
allowDiskUseoption you can enable to make it use temporary files on disk to exceed that limit. Though optimizing the pipeline is a better solution when possible!