[03:25:25] <here4thegear> 2015-01-18T03:22:36.591+0000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
[03:25:40] <here4thegear> why would one get that error when typing mongo at cli?
[03:36:45] <here4thegear> I restarted the server and ensured the app that I was running was closed and was then able to connect
[03:37:25] <here4thegear> so, looks like when my nodejs app is running (using mongoos) I can't do anything else in the database
[03:59:47] <dimon222> usually such error means that you're trying to connect to wrong port
[04:09:11] <here4thegear> dimon222: thanks... I think I did a quick shoddy job at my initial setup of everything (I'm a n00b but that's not a good excuse for not having RTFM) so, I think I'm going to reprovision a virtual machine and start building my stack from scratch but actually reading the instructions :-P
[05:28:04] <steffes> anybody doing or have done the mongodb university course?
[08:37:56] <sgo11> hi, I just want to log all user queries. I did "db.setProfilingLevel(2)". When I do "db.system.profile.find().pretty()", it shows there are many queries against "test.system.indexes" and "test.system.profile" (I don't know what triggers those queries). after a few minutes, 400 queries against "indexes" and "profile" ns compared to only 7 queries against my actual collection. how can I disable logging "indexes" and "profile" queries?
[16:18:30] <j0k3r_> hi guys...i am launching a map reduce job but am getting some wrong entries in the resulting collection, and can't understand why. Here's some data: http://pastebin.com/pKwVAa8n
[16:18:51] <j0k3r_> i have inserted an example of document from the source colleciton
[16:20:30] <huleo> guys, I have controller in which someone is not using $scope, but 'this'
[16:20:42] <huleo> basically I want to use $watch on property of this
[16:20:55] <huleo> and of course get dreaded /function is undefined/
[16:21:49] <kali> j0k3r_: there is something that you may not be aware. for a given key, there will be an arbitrary number of reductions, from 0 to anything
[16:22:57] <j0k3r_> ok, independent reductions. So how can i "compose" the full response. Finalize function ?
[16:23:10] <kali> j0k3r_: the emit()ed values, the items in the array-to-be-reduced and the reduce output have to contain the type of things
[16:28:00] <kali> also, consider using the aggregation framework instead of map/reduce
[16:28:19] <kali> it will give you performance an order of magnitude better
[16:28:45] <kali> (not sure all you need to do can be achieve with it, but have a look)
[16:29:02] <j0k3r_> yeah, have already took notice of it...but wanted to play a little with mr framework....coming from appengine one, so am really curious about it
[20:38:18] <jayjo> What's the best way to make a relationship between two documents? Is embedded documents the only way to do this?
[21:00:37] <xxx_js> this piece of code https://gist.github.com/anonymous/faa1486a020576f87d31#file-gistfile1-js-L339 its not being saved due to https://gist.github.com/anonymous/faa1486a020576f87d31#file-gistfile1-js-L355 not being actually ASYNC i think
[21:01:34] <jrajaratnam> Hey there! I’m hoping someone can help me manipulate some twitter data I am harvesting into a MongoDB. I’m hoping to write a script that will copy an element from an embedded object within a document to the root of the document. I’m trying to move tweet.user.screen_name so that I can access it via tweet.screen_name. Any thoughts?
[22:46:04] <jayjo> What's the best way to make a relationship between two documents? Is embedded documents the only way to do this?
[22:50:05] <Boomtime> jayjo: you can make any relationship you like, you just can't do a join
[22:50:35] <Boomtime> embedding is a very effective way to associate data 1:1 or 1:many with an array
[22:51:39] <Boomtime> but if you need something more complex, like a commenting system where it is impractical to embed to entire author document in each comment, you keep the ObjectID as a reference instead
[22:51:59] <Boomtime> (or something of that nature)