Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Join multiple collections on multiple keys using map reduce in Mongo DB.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anand Dayalan  
View profile  
 More options Sep 26 2012, 7:55 pm
From: Anand Dayalan <anand.daya...@gmail.com>
Date: Wed, 26 Sep 2012 16:55:03 -0700 (PDT)
Local: Wed, Sep 26 2012 7:55 pm
Subject: Join multiple collections on multiple keys using map reduce in Mongo DB.

I know a way to join multiple collections using a same key, and I thinks
its not possible to join multiple collections on multiple keys but
wondering anyone know a way to do it.

Lets say I have a collection AAA with fields A, B, and C, and I have a
collection called BBB with fields B, D and E, and I have another collection
called CCC with fields C, F, G.

In collection AAA field B is DB Ref for field B in collection BBB, and
field C in collection AAA is a DB ref for field C in collection CCC. Now I
want join these three collections like AAA join BBB on AAA.B =BBB.B , BBB
join CCC on BBB.C = CCC.C.

I know that I can embed one collection in another but I have a situation
where I can't embed everything but need to do a adhoc report across
multiple collection. So how do I do it?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.