[00:00:36] <joannac> TheEmpath: well, clearly your query is wrong
[00:00:50] <joannac> but yes, if no documents match, then no documents are updated
[00:00:51] <TheEmpath> i'm just doing what the documentation says
[00:02:40] <joannac> show me the actual gig id, and the document that should match that
[00:22:50] <TheEmpath> one moment, everything is on fire and, at always, at the same time
[00:58:55] <TheEmpath> joannac: needed the new ObjectID in the JS to make it work :D
[09:56:19] <lpghatguy> Hey! I'm running the Ubuntu 14.04 install guide verbatim on a totally fresh Ubuntu system and the init.d script is failing to install
[09:56:59] <lpghatguy> I was able to pull in the script from the repo's 3.2 branch and have everything work, but it seems like a workaround I'd avoid for provisioning future machines
[09:58:00] <lpghatguy> (of course, without /etc/init.d/mongod, `service mongod start` gives an unrecognized service error)
[09:58:10] <lpghatguy> What steps should I take to diagnose the issue?
[10:15:29] <lpghatguy> I reduced a Dockerfile down to this and was able to reproduce it: http://hastebin.com/eqafasuxuh.avrasm
[10:15:49] <lpghatguy> Don't seem to be any shady permissions or default config issues in the Docker repository Ubuntu 14.04 image
[10:52:19] <fish_> how can I verify that a replica node catched up sucessful?
[10:53:33] <fish_> specificially I'm looking for a reliable indicator that adding a new replica was succesfull
[15:56:07] <vagelis> If not, then is it possible to query between 2 fields of the same document? I mean compare those 2 fields?
[15:57:38] <kali> vagelis: you would need a $where clause, but in most cases, you don't want to use that
[15:59:43] <vagelis> i dont understand :S I mean i have to find documents where those 2 fields shoulnt have the same value. Is there a better way to do it?
[16:02:56] <kali> vagelis: this pattern can't be indexed, so finding a small number of documents where these fields are equal in a big collection is inefficient. all alternatives boil down to scanning the collection
[16:03:15] <kali> vagelis: one efficient option is to store the difference of a and b
[18:32:42] <Lujeni> 2015-12-30T19:14:21.587+0100 [initandlisten] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017
[18:33:38] <Lujeni> Gasher, $ netstat -plantu |grep 27017 , u must change your port for example or maybe an another instance of mongodb is running
[19:07:30] <livcd> how can i make mongodb recognize localhost (docker container ?
[19:32:43] <tsturzl> So I'm having trouble wrapping my head around a geographically redundant replica set
[19:34:10] <tsturzl> If I have my primary, 2 secondaries, and an arbiter in site A; and a single secondary in site B. Home does the secondary in site B become primary when no members can elect it?
[19:35:21] <Derick> the one in site B can't become primary unless it can see at least 2 more nodes (arbiter or not) in site A - as you need more than 50% available nodes
[19:35:49] <tsturzl> @Derick, then why is it that MongoDB suggests such a setup?
[19:36:19] <Derick> I don't know, I haven't read these docs
[19:37:13] <tsturzl> And with that stated, how would it be possible to failover between 2 datacenters? Seems like the only reasonable way would be to have more than half of my secondaries in my backup location
[19:37:30] <tsturzl> which isn't very convenient or cost effective
[19:37:43] <Derick> you need at least an arbiter in a third data centre for that to work
[19:38:21] <Derick> 3 nodes in A, 3 nodes in B, 1 node in C
[19:38:58] <Derick> with the one in C an arbiter... and possibly 1 of 3 in A and B too
[19:39:20] <tsturzl> Hmm, might have to reconsider this architecture
[19:40:33] <tsturzl> Strange that they recommend 3 node and 1 arb in site A, and 1 node in site B. What advantage is even gained from that. It really only protects against the possiblity that site A would have lost its data
[19:42:31] <tsturzl> I just feel its missing details of what the benefit of each recommended setup is
[19:43:58] <Derick> tsturzl: yes, I agree. I'll file a DOC ticket
[19:44:24] <tsturzl> and how to geo-graphically distribute your infrastructure, which I understand might be a very broad and cumbersome topic but I've found very little information on it. And while it may have been silly for me to assume, I thought there might be some kind of specific strategy for this
[19:44:49] <tsturzl> So that site B could become a primary without the need for a third data center and all these extra boxes
[19:45:04] <Derick> that can't work, as you need a majority of nodes visible
[19:45:18] <Derick> so if you have 3 in A, and 3 in B, you need 4 available nodes
[19:45:27] <Derick> meaning that if either A or B go down, you don't have that
[19:45:33] <Derick> only way to fix that is an extra node in C
[19:45:34] <tsturzl> Yeah, it was silly of me, I'd just assumed they have figured out some magical way to do it that I'm unaware of.
[21:41:20] <sigkell> so I have a database with three collections: candidates, parties, constituencies. in the candidates collection, each document has references to another document in parties and constituencies (ObjectID). this is all fine, but I'll be exposing this as a HTTP API - what's the best way to resolve the referenced document and embed it in the result?
[21:41:39] <sigkell> I know how to do it in my application logic, but I'm thinking it might have performance issues, and I'm not using mongo properly
[21:42:25] <sigkell> so what I need to do is resolve ~400 ObjectIDs and replace them with the correct document, when someone queries the API