I want to understand if it is feasible to support DBRef for MongoDB aggregation framework in future.
Hi Ratish,
DBRefs are a convention used by applications, but do not have any special support in the MongoDB server.
MongoDB explicitly does not support joins, so it is unlikely that DBRef support will be added to the aggregation framework. A DBRef would require read access to other collections during Aggregation or Map/Reduce, which could potentially lead to performance issues and deadlocks.
A more typical approach would be to structure your data model so joins are not required (i.e. embed Alerts in Events, or vice-versa).
Cheers,
Stephen