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
Join multiple collections on multiple keys using map reduce in Mongo DB.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
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.
David Hows  
View profile  
 More options Sep 27 2012, 1:47 am
From: David Hows <david.h...@10gen.com>
Date: Wed, 26 Sep 2012 22:47:46 -0700 (PDT)
Local: Thurs, Sep 27 2012 1:47 am
Subject: Re: Join multiple collections on multiple keys using map reduce in Mongo DB.

Hi Anand,

MongoDB doesnt support joins natively, you will need to perform the joins
within your application.

Cheers,

David


 
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.
William Zola  
View profile  
 More options Sep 27 2012, 11:09 pm
From: William Zola <william.z...@10gen.com>
Date: Thu, 27 Sep 2012 20:09:33 -0700 (PDT)
Local: Thurs, Sep 27 2012 11:09 pm
Subject: Re: Join multiple collections on multiple keys using map reduce in Mongo DB.

Anand -- are you trying to do this with standard queries, or with mapReduce?

 -William


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »