You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
Hi Scott,
Thanks for your explanation. During the map phase I need to get documents from another collection which refer by the DBRef on my current collection where I do the map/reduce. Is there any other way to get this documents from another collection inside map/reduce function?
Thanks.
Scott Hernandez
unread,
Apr 29, 2012, 11:46:10 PM4/29/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
Are you just trying to group by those references? If so, can you look
them up when you query the results from the client?
In short, there are no joins at the server.
On Sun, Apr 29, 2012 at 8:25 PM, Martinus Martinus
Martinus Martinus
unread,
Apr 30, 2012, 12:29:03 AM4/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
and then I have another "name" collection : { "_id" : 100,
"food" : "dog_food",
"quantity" : 10
}
So I do the map/reduce on animal collection, but I need the data from the name collection document (quantity and food) for each type of animal inside the animal collection.
Thanks.
Sam Millman
unread,
Apr 30, 2012, 3:24:11 AM4/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
Is there any reason why you cant adjust your schema to match your MR?
So put a subdocument called "food" in the animal collection and place the "name" collection inside it.
Martinus Martinus
unread,
Apr 30, 2012, 3:27:43 AM4/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
Hi Sam,
Because the original "name" collection is not this small, it has many fields inside it. So that's why we put it into another collection.