[00:21:40] <inspiron> i'm trying to update a nested element in a collection and if it doesn't exist then have it created. here is what i tried https://paste.pound-python.org/show/zegOyjZp9aoysneNj9Ux/ This is in python but just seeing how to do it in regular mongo would help if a python answer can't be given
[02:42:53] <inspiron> is it possible to just update something based on the key? and if that key doesn't exist then insert something
[02:43:03] <inspiron> seems like everything in the api needs the value for the key
[02:43:23] <inspiron> if map['location'] doesn't exist then make it. otherwise update it
[07:25:15] <stefandxm> my google skills are failing me; when are mongodb or the mongodb c++ drivers automatically changing _id from string to objectid?
[18:04:38] <UberDuper> atbe: That's the connection ID. When a new connection is made, the log shows the id (but in a different format). It can be convenient to grep on a connection id to see everything a connection did.
[18:04:55] <UberDuper> And iirc that connection id can also be seen in currentOp()
[20:35:24] <CasperGhost1> Cant get ssl to work with mongodb can anyone help me out?
[20:36:56] <UberDuper> CasperGhost1: Do you have an ssl enabled version?
[20:39:21] <UberDuper> Some binaries aren't compiled with ssl enabled. Like the generic linux tar. IIRC the distro dependent ones like Redhat have it in 3.0.x
[20:42:14] <CasperGhost1> i get two different errors depending on how i have my .pem files arranged im assuming its just my ssl files are wrong " no SSL certificate provided by peer; connection rejected" or "error unknown CA"
[20:43:43] <UberDuper> If self signed you're going to need a copy of the CA cert on each member of the cluster. And also on the client unless you disable cert verification which I wouldn't recommend.
[20:44:13] <UberDuper> Guess same is true of legit certs if they came with a intermediate cert.
[20:45:22] <CasperGhost1> got a wild card ssl from comodo
[20:48:28] <CasperGhost1> the PEMKeyFile i think i got correct cuz its just the ssl & priv key right?
[20:50:01] <CasperGhost1> but the CAPEM idk lol been trying forever cant get it
[21:06:35] <UberDuper> CasperGhost1: I don't remember off the top of my head how those are supposed to be setup.
[21:10:00] <MacWinner> is there a way to use .update() to change a value conditionally? like update a field only if the current value is lower than the new value