[04:53:07] <morenoh149> today a coworker was going through gymnastics to recreate an object and then storing it. To avoid supposed poor mongodb write performance
[04:57:52] <morenoh149> situation was something like: we must store a user's progress through levels. so we have user.hashes = {} user.hashes['1'] = new Date() - typeof(user.hashes) = Object
[04:58:21] <morenoh149> what are some performance considerations in this case?
[04:59:11] <morenoh149> he insisted that it was more performant to additionally have a user.levelsCompleted = Object.keys(user.hashes) = ['1
[05:09:27] <morenoh149> yes. Keep in mind, it's not my app. I think I'd be able to figure it out myself. I'm dealing with my lack of expertise and his potential misinformation
[05:10:32] <cheeser> why not just store the last completed one? if completing level 10 implies completing levels 1 - 9 then 10 is all you really need to store.
[05:11:35] <morenoh149> not sure. He wants to track levels completed and at what dateTime
[05:24:12] <linocisco> cheeser, java should be tightly integrate with Oracle DB. same company. Anyway, father of Linux said Java is https://www.youtube.com/watch?v=Aa55RKWZxxI
[05:25:33] <tjsail33> is there a way to determine which collection an _id is from? say i have three types of posts as different collections, and I am tracking their responses in one collection by parent. can i use that parent to find the correct collection without querying all three?
[05:27:36] <tjsail33> cheeser - alright, thanks. if the operation only happens occasionally, querying the three collections by an indexed value should be fine perf wise right?
[05:28:01] <cheeser> less than ideal but probably okish depending on your data size
[05:28:34] <tjsail33> fairly small, and i can order the queries so 75% of the time, the first query will be the correct one
[17:41:11] <salty-horse> hi. repost from yesterday: If I resize a document (that is, save()ing a document where one of the fields is much smaller), does mongodb use less space to store it? if so, when does it update the collection's stats() ?
[20:39:28] <mnml> my mongo server went out of disk space and now the data is gone after reboot, (still in the data folder tho) but when I repair it doesn't recover. Anyone knows what I could do ?
[21:37:49] <GothAlice> mnml: To repair you will need as much free space as your data + ~2GB.
[21:38:01] <GothAlice> (Since it'll need to read out the data and re-write it into new files.)
[21:38:29] <GothAlice> Running out of disk space is one of those thing you'll want to set up monitoring for, since running out is… Very Bad™.
[21:50:32] <joannac> mnml: wait, tell me what you did in order.
[22:06:45] <mnml> joannac: mongodump --dbpath=/data/mongodb/db -d base --journal
[22:15:36] <gr8> a Node.js application I am working with throws an error because the "rethrow_if_no_listeners" flag is true. what does that flag tell me?
[22:35:57] <jonasliljestrand> Is it alright to ask mongoose questions here? did'nt find a mongoose channel
[22:45:21] <gr8> jonasliljestrand: try it ... you'll see
[22:46:56] <jonasliljestrand> if you put it like that.. so here we go :) http://pastebin.com/T7iyEa9e
[23:26:11] <davo> hi all. i'm confused if i'm connecting to a remote mongo server correctly, before I call my sysadmin, i'd like to get your opinion first. when I run ssh to the remote server, passing `-L 27017:localhost:27017 -N` I get `ssh: connect to host 23.22.7.86 port 22: Operation timed out`, i have mongod running in another terminal. any ideas if i am doing something wrong?
[23:36:04] <joannac> yes, looks like you can't ssh to that server?
[23:39:54] <jonasliljestrand> if u have mongod running you proberbly cant reassign that port
[23:40:08] <jonasliljestrand> with your ssh tunnel
[23:42:35] <jonasliljestrand> Say you have a mongod running on your local machine on port 27017. Then on your remote connection you can do 27018:localhost:27017 (for example).