4 ms·
Links in mongo aren't really links though; its up to the application to handle the "joins", which really means making an extra query for every linked item. It's
by lhc- 13y ago
Links in mongo aren't really links though; its up to the application to handle the "joins", which really means making an extra query for every linked item. It's like SQL joins except without any of the supporting tools or optimizations that exist in RBDMS.
- raverbashing 13y agoYes, it is manual But you can query for a list of ids for example, using the 'in' operator and a list. http://docs.mongodb.org/manual/reference/method/db.collection.find/#db.collection.find http://docs.mongodb.org/manual/reference/method/db.collectio...
- SigmundA 13y agoIsn't this done client side? Without joins in the db engine itself locality is much worse along with lost opportunities for optimization leading to much worse performance.
- mason55 13y agoYes, you have to build the list of IDs to pass to the $in operator and then send out a second query but grandparent post said you had to make an extra query for each linked item which is incorrect.