User.sum 'credit'
User.sum 'credit', group: 'role', limit: 100
--
--
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.
Yeah, the code I mentioned is doing the calculation in Ruby, not on Mongo. I'm not certain if Mongo is capable of that sort of calculation in the database.