db.eval() in sharded enviroment

25 views
Skip to first unread message

Voltron

unread,
Jun 17, 2009, 1:33:11 PM6/17/09
to mongodb-user
I intend to use db.eval() as in the example in the documentatiion
(http://www.mongodb.org/display/DOCS/Server-Side+Processing) as I have
to calculate averages. This is contrary to statement that one should
avoid using db.eval() in a sharded environment.

What would be the preferred method then?


Thanks

Eliot Horowitz

unread,
Jun 17, 2009, 8:18:30 PM6/17/09
to mongod...@googlegroups.com
This is sort of uncharted waters for us right now.

We could allow read only db.evals that hit every shard for example.

Short answer is there is no great solution. We'll be working on this
a lot over the next couple of months.

-Eliot
Reply all
Reply to author
Forward
0 new messages