[04:00:05] <macwinne_> Hi, I have a simple regex search for any email matching a domain in my mongo query.. I wanted to see what the best way to do a query for emails that DO NOT end in the domain name..
[04:00:24] <macwinne_> any suggestions on this? seems like negative searches aren't really performant
[04:00:48] <macwinne_> or maybe searching for all emails that does end with @<filterered_domain>
[09:59:11] <flok420> for a query where I do a '$lt' on a field, will it help if I put an index on that field? because I *think* that indexes are only for == and not for > and <, right?
[10:50:16] <Kosch> hey guys. I see in the log the message "The server certificate does not match the host name" (mongodb 3.0.8). I have set "allowInvalidHostnames: true". My question is: Is this just a warning message, or is this an error? http://nopaste.linux-dev.org/?899573
[10:54:27] <nerder> how can i store result documents into an array? and how can i print it out?
[10:56:14] <nerder> this is my simple script, but actually it doesn't work fine
[10:58:47] <nerder> ok, it work in this way : https://gist.github.com/nerder/a17a80f044dbce85b689
[11:04:56] <nerder> second question is, i can use the result array as a collection? i mean i can do myResultArray.findOne({query});
[11:40:17] <sppadic> hi there - quick query regarding high globallocktime in dbserverstats as opposed to the total time
[11:40:25] <sppadic> this is in mongo 2.6 running on centos 6.4
[11:41:06] <sppadic> there was a spike in locks for about 10mts earlier - the current mongostats as well as globalLOck output in db.serverStatus shows that there are no queued writes or reads
[11:42:13] <sppadic> wondering if the only way to reset that locktime is to restart the replica node?
[11:58:51] <steerio> hi, is there an opposite to rs.initiate() ?
[11:59:11] <steerio> i am trying to set up a cluster, i used rs.initiate() with no arguments on both sides, now it complains that both members have ID=0
[11:59:30] <steerio> i mean rs.add() simply doesn't work because of that
[11:59:49] <steerio> so i guess i need to reconfigure one of the sides such that the id is not 0
[12:00:16] <steerio> but i cannot remove the sole member using rs.reconfig()
[12:00:27] <steerio> can i add the other member using that, instead of rs.add()?
[12:01:46] <steerio> ...but then i have to do that on the other side too, argh
[12:02:17] <steerio> goodness, why does this have to be so painful
[15:52:16] <Kosch> Hi! Replication question (3.0.8): I have a primary. I have a secondary with priority 0. When I shut down the secondary, shortly after the primary steps down to become secondary "Stepping down from primary in response to heartbeat". How can I avoid this step down when secondary is not available?
[16:01:50] <Kosch> Is the only chance to avoid the step down to add an arbiter?
[16:10:00] <cheeser> sounds like you have a different problem if your primary randomly decides to step down.
[16:10:12] <cheeser> is it because it's not seeing the secondary quickly enough?
[16:10:35] <cheeser> in that case, an arbiter on the same machine/network would "fix" that but your replication is still broken.
[16:12:34] <Kosch> cheeser: yes, its kind of remote backup of the data. And the remote connection is not the best one. I just want to avoid that the primary steps down :) Maybe I should set hidden:true and votes:0 for the secondary.
[16:14:36] <cheeser> or find a better backup solution :)
[16:18:42] <livcd> is there a minimal client for osx ? i just need a client to connect to a remote db
[16:19:04] <Kosch> cheeser: ATM its the best solution for cold standby. mongodump is not a option, mirror of the volumens too. Somtheing like incremental backups only exists using the oplogs... which seems to be a bit tricky to me. So using replica set seems the only option I can see.