Groups
Groups
Sign in
Groups
Groups
mongodb-user
Conversations
About
Send feedback
Help
Does MongoDB ignore calling Reduce function when Map emits only one result?
43 views
Skip to first unread message
Rmon
unread,
Jul 27, 2012, 1:21:44 AM
7/27/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
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
I notice that when the Map function returns one entry, then Reduce doesn't get called.
Is this the default behaviour?
Can MongoDB be forced to always call the Reduce function?
Emily S
unread,
Jul 27, 2012, 11:28:01 AM
7/27/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
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
If the map function emits a single document for a given key, the reduce function will not be called.
This is by design. You can see the above note and read further documentation here:
http://www.mongodb.org/display/DOCS/MapReduce
Reply all
Reply to author
Forward
0 new messages