Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
http://www.mongodb.org/display/DOCS/MapReduce - Shell Example 2 looks like what you need.
Thanks to all!
After searching, I came across a tip from the Mongo authors:
cookbook.mongodb.org/patterns/count_tags/
sadist007 > yes it looks like it, thanks. In the example from the link I provided above, the table is not deleted later, i.e. a permanent table is created that is updated each time a tag is added. Having understood the principle, I can offer the following option:
with each addition/deletion, add/delete tags from this table and once every N-th period of time, do a map-reduce for recalculation, for accuracy.
Now the next question arose: how to select posts by tag? Again Map/Reduce'om? Isn't it too long?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question