Hi,
Send me your functions and collection information, I'll take a look.
Regards,
Ishaan
Developer, MongoVUE
On Jan 6, 3:15 pm, Slevoaca Florin wrote:
> Thanks. Now, in mongoVUE, do you know how to use the "Map Reduce " panel ? I
> am writing the map, reduce and finalize functions in the specific fields,
> but when I hit "Go" it starts executing and never stops . Troubleing....
>
> 2011/1/5 Sam Millman
>
>
>
>
>
>
>
> > Oops sorry didn't look at the top of the document. It should be this:
>
> > f = function(){ finalise here }
>
> > db.events.mapReduce(m, r {query:{type:'sale'}, finalize:f})
>
> > On 5 January 2011 20:36, Sam Millman wrote:
>
> >> f = function(){ finalise here }
>
> >> db.events.mapReduce(m, r, { query : {type:'sale'} }, f)
>
> >> On 5 January 2011 17:25, Slevoaca Florin wrote:
>
> >>> Yes, but i need to know how the finalize function has to be executed in
> >>> the mapreduce function.
>
> >>> 2011/1/5 Nat
>
> >>> check out sample at
> >>>>http://www.mongodb.org/display/DOCS/MapReduce#MapReduce-ShellExample1
>
> >>>> On Jan 5, 10:13 pm, Slevoaca wrote:
> >>>> > Hello
>
> >>>> > I found this very interesting tutorial about mongodb mapreduce:
> >>>>http://blog.mongovue.com/2010/11/03/yet-another-mongodb-map-reduce-tu.
> >>>> ..
> >>>> > .
>
> >>>> > There are 3 functions: MapCode, ReduceCode and Finalize. I wrote them
> >>>> > line by line in mongodb shell, but I don't know how to execute them.
> >>>> > Could You please tell me how should I do exactly ? Is it something
> >>>> > like this ? :
>
> >>>> > res = db.cities.mapReduce(MapCode,ReduceCode, {finalize:finalize});
> >>>> > db[res.result].find();
>
> >>>> > Or could You please explain me how should I execute them in mongoVUE?
> >>>> > I see there is a "Map Reduce" field and I wrote the functions there
> >>>> > but when I hit "Go" it doesn't work.
>
> >>>> > Please help me !
>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> >>>> Groups "mongodb-user" group.
> >>>> To post to this group, send email to [email protected].
> >>>> To unsubscribe from this group, send email to
> >>>> [email protected]
> >>>> .
> >>>> For more options, visit this group at
> >>>>http://groups.google.com/group/mongodb-user?hl=en.
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "mongodb-user" group.
> >>> To post to this group, send email to [email protected].
> >>> To unsubscribe from this group, send email to
> >>> [email protected]
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/mongodb-user?hl=en.
>
> >> --
> >> Bow Chicka Bow Wow
>
> > --
> > Bow Chicka Bow Wow
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mongodb-user" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]
> > .
- show quoted text -
answered
Jan 10 2011 at 00:55
Ishaan