[00:36:55] <energizer> Hello, I'm new to mongodb. I've written some code. I'm guessing there's a better way to do this easy thing, but i'm not sure what it is. Comments show what I mean. http://pastebin.com/0jvRSLgf
[00:37:17] <energizer> (E.g. is the first part of my if-statement redundant here?)
[00:38:30] <joannac> why are you upserting key-value pairs one at a time?
[00:38:42] <energizer> joannac: how am i supposed to do it?
[00:51:02] <Xapht> I have a stored a mongoDb document containing time series data, with counts to calculate averages at each step up/down the tree. How can I construct a query to only return the total and totalCount fields that are nested in the document.. (Example doc https://gist.github.com/hoittr/2292fc2c978db5d95ac5)
[02:31:14] <jmorphin> Hey there. How does mongo fare as a persistence database? I've read some concerning things about data loss and the like, just wondering if it's safe to use as a primary store.
[02:46:48] <dyce> if i index restaurants by zipped what does that do exactly?
[03:49:23] <terminal_echo> When I query a collection if this is enabled I do not get any results
[03:49:31] <terminal_echo> if I disable it, I get results, but the references are not translated
[03:50:03] <terminal_echo> doing something wrong, maybe I don't understand what this actually does? I assumed this meant that if you setup reference relationships they would automatically be translated in the results of a query?
[03:56:50] <joannac> terminal_echo: are you talking about something like mongoose?
[03:57:26] <joannac> I have no idea what "allow_inheritance" is referring to, there's nothing like that in the server
[03:58:30] <terminal_echo> I was under the assumption references worked like foreign keys in mongo?
[04:00:24] <terminal_echo> so in my query results, if I have references setup as basically foreign keys, there is no way this is automatically translated?
[05:32:09] <energizer> How do I update a db with the entries of a dictionary?
[05:34:15] <energizer> (How do I update a *document*'s fields with the corresponding fields of a dictionary?)
[08:16:05] <synthmeat> at start of my app, i'm accessing db in a way that's uncommon during the actual app lifetime. is there any reason to believe i should purge working set after such operations?
[09:17:23] <Kobbb> Hey guys, does anyone know a good mongodb client running on linux that support mongodb3 ? I can't find a good one :(
[09:29:50] <skullcrasher> what can be the problem if I can connect with "mongo" but not with "mongo mongodb://localhost:27017"?
[11:46:37] <izzy_> im trying to setup mongodb on a cluster, but i get the following error: "errmsg" : "exception: need most members up to reconfigure, not ok : .. code" : 13144,
[11:47:08] <izzy_> now stackoverflow says i cant connect to the other server, while im able to remotely mongo shell to those databases
[12:08:28] <deathanchor> izzy_: did you rs.initiate on only one member?
[12:11:03] <deathanchor> rs.initiate should only be done on one
[12:11:19] <deathanchor> then on that one, you do rs.add() to add the other members
[12:11:41] <deathanchor> it's a common mistake people do when first setting up replicasets
[12:12:29] <deathanchor> just think of it as, there can be only one initiate! it becomes the leader, and the others will follow when added by the initiate.
[13:15:56] <Majidsafaei29> asteele: allNews is in list of numbered keys, in javascript terms I could access it by allNews[0].tags (not allNews.tags), so { 'allNews.tags': { $exists: true } } does work.
[13:17:44] <cheeser> Majidsafaei29: read the SO answer
[13:18:03] <Majidsafaei29> cheeser: the answer is not correct.
[13:19:15] <cheeser> when someone gives an answer, saying "it doesn't work" isn't helpful. people generally need actual error messages and/or output in order to diagnose problems. without those details we're all just stabbing in the dark.
[13:20:27] <Majidsafaei29> the answer is correct for this document http://paste.ubuntu.com/12192513/ not for http://paste.ubuntu.com/12192331/ .
[13:20:28] <Majidsafaei29> OS answer returns 0 results.
[14:13:14] <christo_m> cheeser: Movie.find({ title: { $regex: /^+escape(req.query.terms) } }, function(err, movie) {}); have a feeling this won't work..
[14:13:22] <christo_m> i also have Movie and TV Shows in separate collections.. i guess i have to run 2 find's
[14:13:55] <cheeser> deathanchor: i don't know. sorry.
[14:15:15] <deathanchor> found it in the docs: Members in the RECOVERING state are eligible to vote in elections, but are not eligible to enter the PRIMARY state.
[14:18:20] <Jameswnl> hi, i have a replica set and client is using mongos to access them. the question is that if I enable authentication, will that slow down the data read? Or it will only slow down the initial session establishment, not the subsequent data read? thanks
[16:51:16] <stuntmachine> I've got a mongodb setup with a keyFile on each member of the replica set. I just tried to run mongodump from a server that is not a member of the replica set (just a backup file) and I'm getting an error that I believe only started after I configured this keyFile. The error is: 2015-08-25T11:47:59.673-0500 Failed: error getting database names: not authorized on admin to execute command { listDatabases: 1 }
[20:37:06] <jr3> cheeser: I guess my question is really, we have a replica set by enabling read replicas, does this distribute reads? or does it all flow through master?
[20:38:37] <kali> jr3: nope. once the initialisation step is done, the client goes straight to a secondary if it is allowed
[22:28:11] <diegoaguilar> how can I obtain "what are the matchplayer documents with same player.id, same matchDate.round, but distinct totalPoints attribute"