According to this post,aggregation
is much better in performance than mapReduce
,
but as far as I know aggregation can't do join
-like operation which involve multiple collections, which is required for example when you want to sort the payment by the user's age,which are in two difference collections.
Is there any good solution to use aggregation
in these situations?
There're many,many such requirements in my project, so I want to know what's the current best practice in doing this, or how bad the mapReduce
performance is in newest mongodb.
Thanks in advance!