Displaying 1 result from an estimated 1 matches for "whowin".
Did you mean:
showin
2011 Dec 22
0
mongodb Map/reduce grouping
...quot;
}
] }
Here i have to select top 5 challenges having highest task score. I am
using mongodb as database and i come to know
there is concept of "Map/reduce grouping" but not able to figure it out.
i was writting this code in my controller but it become more complicated.
def whowins
@challenge = Challenge.where(:_id => "4ef1a6a454b53001a4000067").first
$wins ={"first"=>{"id"=>"1", "score"=>"1"},"second"=>{"id"=>"2",
"score"=>"2"},"third&...