You can use the $size operator (new in 2.6) to project size of array and use $divide and $multiply to calculate percentage from that.
Asya
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/e1719e83-433a-40f4-8269-1dbf1e38bd43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.