PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 29th of June, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:41:23] <eatnumber1> I've got a fully indexed count() which always returns 0 even though next() has data. The query is db.works.find({$query:{time:{$gte:1372465234,$lt:1372468834},event:"download"},$hint:{time:-1,event:1}}, {_id:0,time:1}).count(), and I've got an index db.works.ensureIndex({time:-1,event:1}, {sparse: true})
[03:43:39] <binroot> Hey, how do I get the newly changed JSON right after I call update?
[03:44:12] <binroot> I want what I updated in the callback from collection.update( ... , function(err, result) )
[11:38:59] <simon__> If your sharded cluster holds a small data set, you can connect to a mongos using mongodump. You can create backups of your MongoDB cluster, if your backup infrastructure can capture the entire backup in a reasonable amount of time and if you have a storage system that can hold the complete MongoDB data set.
[11:39:04] <simon__> What is small data set?
[11:39:13] <simon__> Is ~700Gb considered small?
[14:16:10] <Wayland> I have thought about using mongodb for a project i'm working on, but i was wondering if there is any documentation, towards how mongos will redirect traffic to a replicaset, will it only redirect traffic to the master or does i load balance in some way?
[14:54:42] <moogway> hey people... is there way to get the index of a document from a sorted array of documents? I am sorting the documents on a value, and need to find out the position of a particular document in that array
[14:55:06] <moogway> what's the best way to do it?
[14:57:46] <moogway> oh okay got it, the way to do it could be to sort the array and count the number of documents with the value less than the reference value (whose index I need)
[14:57:48] <moogway> dang
[17:41:59] <fx_> Hi everyone. Is it possible to get a count of all the rows matched by find() and then iterate through them? or does it have to be done in two queries?