Interesting to know that $lookup is heavy though, I did use it without noticing performance issues but that's still something to consider.
The lookup alone I don't think adds roo much, but usually you need other ops.
And try the test on a large db, eventually with sharding then you'll see the out of memory issue 😀
large remains to be defined but yup I see the idea
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.