[05:57:59] <sellout> Is there any way to ask Mongo if the current user has a particular privilege? EG, if (db.user.hasPriv("anyAction", "anyResource") then db.eval(…) else db.slowerThing(…)
[08:09:21] <salty-horse> hi. using mongo 2.4.6 I dropped a sharded collection. while the collection doesn't appear when I run "show collections", typing "db.COLNAME.getShardDistribution()" shows the collection to be sharded and empty. how do I remove this metadata? I tried restarting all mognos and mongoconf. didn't help
[09:37:42] <Zelest> My mongodb.log is spammed with "connection accepted" and "end connection" all the time.. I was under the impression that MongoClient for PHP used persistant connections?
[09:37:49] <Zelest> I'm using php-fpm, 10 static forks
[10:54:52] <Zelest> howdoi, in short, use skip() and limit() if you want to go with the default behaviour of _id ... otherwise, define _id yourself as an integer for every book... or third, create another field, e.g, "bookid" which you use for your numeric id.
[10:55:03] <desmondHume> mongo has no default sort
[10:55:21] <Zelest> desmondHume, the default is the same order it was inserted in iirc.
[10:55:23] <desmondHume> it simply fetch the documents as they are in the files
[14:53:44] <munumnu> is there a way to use addToSet in the aggregation framework and count how often a unique value was added? It should look something like: [{addedVal: 2}, {addedVal2: 1},...]
[18:56:58] <Gargoyle> I'm evaluating whether to use EBS or Instance storage in AWS instances. Assuming everything is being deployed as 3 node replica sets what are the issues I'll face if an instance is completely killed and has to come back online with all local storage wiped out?