--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/c1c248a2-79d1-4bd6-8390-8f40cdbb6c2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
finalize: finalizefunction
mapReduce
It's added to the argument that includes "out" info - the docs show some examples, basically it is called last for each key after all the reducing is done.
Asya
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/5dda1efd-025c-497a-ae31-e92d0a8969f9%40googlegroups.com.
The example you point to is doing exactly what you are already doing. Wouldn't his code have the same issue you are trying to avoid?
If he had a department with no employees it would still be output in the end.
How frequently do you have to do this "merge" and how are you using the output collection? Maybe mapReduce isn't the only/best way to get there?
Asya
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/38efd136-74e5-471e-8b22-de24875e7460%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/4a738a8b-8754-4e04-a7fd-13f489d74650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/4a738a8b-8754-4e04-a7fd-13f489d74650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/4a738a8b-8754-4e04-a7fd-13f489d74650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
MongoDB World is back! June 1-2 in NYC. Use code ASYA for 25% off!
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/e9e3cecd-a2a2-4de8-96ae-bfc68df00a4c%40googlegroups.com.