From: λq <lamb...@gmail.com>
Date: Tue, 12 Jul 2011 12:16:21 +0800
Local: Tues, Jul 12 2011 12:16 am
Subject: Re: [mongodb-user] besides emit() in map(), can I simply omit this map-reduce cycle?
{ }, { 'user': user1, 'day': '2011-07-10' 'top-list': [ {'score': score1, 'date': date1, 'app': app1}, {'score': score3, 'date': date3, 'app': app3}, {'score': score4, 'date': date4, 'app': app4}, ] }, { 'user': user1, 'day': '2011-07-11' 'top-list': [ {'score': score3, 'date': date3, 'app': app3}, {'score': score4, 'date': date4, 'app': app4}, {'score': score2, 'date': date2, 'app': app2}, ] }, Given app3, return a result like: {'2011-07-09': 3, '2011-07-10': 2, '2011-07-11': 1} app3 is at rank #3 place in 2011-07-09, raised to #1 and #1 in the following But in the collection, app3 is out of the 'top-list'array, so I do not want So can I skip a number of documents for a map() ? 2011/7/12 Eliot Horowitz <eliothorow...@gmail.com> > I'm a bit confused by what you mean.
> Is that a sample document that's in the collection? > What would the output look like? > 2011/7/11 λq <lamb...@gmail.com>: > > { > > -- > -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||