Discussion on: How do you handle many-to-many relationships in Mongo?

enahomurphy profile image
Enaho Murphy

One of the biggest issues I find with this IDs approach is mongodb pipeline, as long as you don't have to do complex pipeline lookup on that many IDs.

There is a memory threshold on aggregates I guess that's why mongoose uses plain queries on the populate function.