[01:20:51] <symbol> so `update` is deprecated and `updateOne` is recommended...but `findOne` is depreacated. Seems like they'd want to keep that one around in the node driver.
[04:19:52] <fullstack> 9/10 I use findOne to sample the schema so I can fix whatever is wrong with my query real quick in some terminal on a remote server
[07:45:27] <the_german> I iterate over a collection with forEach. This takes quite a long time. The query always stop after almost exactly 3600s. I already set the noTimeout option
[08:15:07] <Zelest> Derick, is there any way to print/convert the query to mongo client json?
[08:15:26] <Zelest> Derick, that is, from a php array to the query being used in the mongo cli shell.
[08:18:18] <Derick> your question was a *little* vague
[08:19:43] <the_german> Maybe a little more people are online now. I do the following query db.inventory.find().addOption(DBQuery.Option.noTimeout).forEach( ..myFunction...). It works great and fast but it stops exactly after 1h or 3600 seconds. I have no idea why
[08:20:04] <the_german> Nothing in the log. it just stops
[09:19:15] <Zelest> Apart from RAM and storage being obvious, should one invest in a powerful CPU while buying a machine for MongoDB?
[09:20:37] <Derick> it's more important with WiredTiger as it's a lot faster... CPU is handy if you do non-indexed sorts, or aggregation framework stuff a lot
[09:20:52] <Derick> I wouldn't necessarily pick the most expensive top of the line CPU though
[14:33:20] <pamp> For instance, the inequality operators $nin and $ne are not very selective since they often match a large portion of the index. As a result, in many cases, a $nin or $ne query with an index may perform no better than a $nin or $ne query that must scan all documents in a collection.
[14:36:32] <cheeser> pamp: i've not heard that. url?
[14:52:26] <Lujeni> Hello - i stop one cfg server and when i try to restart him, mongos display this error: "requested shard version differs from config shard version for" Any idea pls? thx
[15:17:52] <dufabricio> Hi.. i need update a specific element in array by key..
[15:18:22] <dufabricio> I was trying to use the $set function..
[15:20:43] <dufabricio> following documentation i could do it .. db.products.update( { _id: 100 }, { $set: { "tags.1": "rain gear", "ratings.0.rating": 2 } } )
[15:22:50] <dufabricio> however , i would like to use key "user55" . Anybody knows hwo to do that ?
[15:24:59] <dufabricio> my bad, I was trying using a wrong ID in find query lol
[15:25:38] <dufabricio> .update({operatorId:32154},{$set:{monitoredUsers:{user55:false}}}) < it works..
[15:52:12] <whyhankee> Hi all, i'm have some questions about cloud.mongo.com and the required agents for automated backup & restore. I prepare a little paste, could someone provide some small insights please? http://pastebin.com/UiAJWTDt
[15:52:57] <whyhankee> or provide the link to a bit of clear documentation. I could not get this clear from the mongodb docs :(