db.runCommand( {
eval: 'function(user) {return getUserInfo(user)};',
args: [ 1 ],
nolock: true
}
);
uncaught exception: { "ok" : 0, "errmsg" : "unauthorized" }
db.eval('return getUserInfo(1);');
uncaught exception: { "ok" : 0, "errmsg" : "unauthorized" }
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
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.
For more options, visit https://groups.google.com/groups/opt_out.
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/ba249b5a-d91d-434e-8d44-aab3b05c553b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/W4XUzVXxYFs/unsubscribe.
To unsubscribe from this group and all its topics, 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/ba249b5a-d91d-434e-8d44-aab3b05c553b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
G.R. Prithiviraj Kulasingham
NoSQL Platform Services, Database Services
prithiviraj...@pearson.com
You can do it yourself, just store each of your aggregation pipelines in a document in a collection, give it two elements, "name" and "pipeline", you could even call it "storedproceedures". they are afterall just data. And bobs your uncle. Surely you dont want to be running javascript in the server - sheeeeeeeeerrsh
Why not have stored procedures be a special system collection. If the cluster is only a replica set, then the mongo client is responsible for calling and running them. If the cluster is a shard, then the mongos is responsible for pulling the stored procedure and then running the queries to gather and assemble the data. Just a crazy idea, which I have no idea, if it has any merit or could work.Scott
--
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/c2a6c920-7eb6-44cb-ab1f-00700cf8b52c%40googlegroups.com.