Re: [MongoMapper] Group By with Months and genrate reports

19 views
Skip to first unread message

Jamie Orchard-Hays

unread,
May 6, 2013, 2:09:17 PM5/6/13
to mongo...@googlegroups.com
Two options are:

1. retrieve the data and group it in Ruby. If the dataset is large, you'll want to batch this
2. write a javascript map/reduce that will run in Mongodb

I'd investigate those two approaches and see which you like best.

Jamie


On May 4, 2013, at 6:17 AM, Farhan Abdul Shakoor wrote:

Hi All,

I've a Job collection which contain a start date attribute (Date type), I would like to generate reports with data group by with months.

By using this start date attribute.

Please help.


Regards

--
--
You received this message because you are subscribed to the Google
Groups "MongoMapper" group.
For more options, visit this group at
http://groups.google.com/group/mongomapper?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "MongoMapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongomapper...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages