[03:41:53] <VectorX> hi, i have an integer time value, i need to get a aggregate count of records that are over 30 seconds, how can i write this so it actually works, "duration30" : { "$sum" : { $gte : [ "$duration", 30]} },
[03:44:15] <VectorX> i also need to do several of those possible in the same query, ie duration60, duration300 etc
[03:52:50] <VectorX> ok got, "duration30" : { "$sum" : { { $toInt: { $gte : [ "$duration", 30]} }} hope that is the right efficient way to do it
[11:58:32] <toytoy> Hi everyone, maybe this is a very stupid question to some of you but I honestly I cannot assure this one yet. Basically I have a mongo shard setup here. So I have, 2 config servers, 2 mongos, then 2 shards {shard1:[node1,node2], shard2: [node3,node4]}. Now I did insert data using mongorestore to one of my “mongos” then data is inserted only to shard2 replica.. but not in shard1. Definitely, that is correct right? since this is sharded...
[11:58:49] <toytoy> The only question I have is, what if shard2 goes down, how can shard1 will get the data from shard2?
[16:10:14] <Kelsar> if i update mongodb to new major versions, do i need to do it version per version or can i jump from 3.6 to 4.4?