Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mongodb: emulating couchdb's incremental map reduce

Are there any techniques for emulating couchdb's incremental MapReduce in Mongodb. Essentially, we want to a periodic map reduce to only touch new documents in a collection.

Could we use finalize to mark documents as 'old' and then filter them out of the next map process?

like image 497
user916915 Avatar asked Aug 18 '26 08:08

user916915


1 Answers

Yes, there is support for incremental map reduce since MongoDB 1.8. See the writeup I did for examples: http://blog.evilmonkeylabs.com/2011/01/27/MongoDB-1_8-MapReduce/

like image 157
Brendan W. McAdams Avatar answered Aug 23 '26 14:08

Brendan W. McAdams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!