Mongo Map Reduce first time

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-06-09T02:57:00Z Indexed on 2010/06/09 3:02 UTC
Read the original article Hit count: 914

Filed under:
|
|
|

Hello guys,

First time Map/Reduce user here, and using MongoDB. I have a lot of page visit data which I'd like to make some sense of by using Map/Reduce. Below is basically what I want to do, but as a total beginner a Map/Reduce, I think this is above my knowledge!

  1. Find all visits to current page where external = true within the last 30 days (unix timestamp, I deal with the date ranges in PHP and then the array, not mongo date)
  2. Group all visits by referral location
  3. For each referral location, calculate how many then went to visit a page which has a certain word in the [tags].

I'm using the normal Mongo PHP extension if that has an impact.

© Stack Overflow or respective owner

Related posts about php

Related posts about mongodb