PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 7th of August, 2016

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[03:02:21] <sifat> Hi all - I have a strange issue. When I run this code: https://dpaste.de/kLNz the updates work fine. But the moment I uncomment the next $set (https://dpaste.de/1JjO), the Name column fails to update. How could this be?
[03:30:17] <sifat> fixed this by using only 1 $set operator
[13:00:27] <kenalex> hello ladies and gentlemen
[13:00:48] <kenalex> here is a nice article i came across: http://www.infoworld.com/article/2615747/nosql/ill-informed-haters-go-after-mongodb.html
[14:16:13] <Conner05> hi, I am new to NoSQL dbs. How can I create multiple collections inside one database using mongoose?
[14:50:05] <cheeser> Conner05: you don't need to explicitly create one. just writing to a collection will create it on the fly.
[14:51:01] <Conner05> @cheeser okay, so let's say I have a customer and orders collection. I can define them in two separate files as schemas, right?
[14:51:45] <Conner05> then I would define a model from the schema then do a module.exports = model; right?
[14:52:52] <cheeser> i'm not sure of the exact mechanics with mongoose. i'm not a js guy.
[14:55:30] <Conner05> ah, okay. thanks.
[15:28:28] <matthias___> Hello, how can i get the _id as a pure string rather than ObjectId ??? in aggregate or find ?
[15:33:24] <cheeser> i'm not sure you can inside a query like that.
[15:45:22] <matthias___> cheeser: ok, thanks
[21:52:14] <kenalex> hello
[21:57:51] <simonv3> Hey all, I’m wondering about an architecture decision and what the best route for it would be. I’m working on a project that has a bunch of Users and Guides, and for each user we calculate a compatibility score for each guide. At the moment we calculate that on each request (it’s a Rails app using mongoid FWIW), but while up to recently that was
[21:57:52] <simonv3> sustainable things have started timing out and blocking here. So I figure that a form of “caching” the compatibility score is the best way to go ahead on this so that it only calculates the score every day or so (this can be optimized further down the line, every day is fine for now). But I’m wondering how to architect this. What makes most sense to me
[21:57:52] <simonv3> is to have a relationship on the User that stores each-pre-calculated guide’s score. I think embedding it makes sense?
[21:58:37] <simonv3> (this might be where my experience with relational dbs is influencing my thought process too much though)
[23:18:08] <Trinity> hi, i'm trying to use authentication in mongo and so far I can log in using my credentials when authentication is turned off
[23:18:17] <Trinity> but when it is on, i get the following errors
[23:18:47] <Trinity> user@hostname:~$ mongo -u user -p somePass --authenticationDatabase admin
[23:18:47] <Trinity> MongoDB shell version: 3.2.6
[23:18:48] <Trinity> connecting to: test
[23:18:48] <Trinity> 2016-08-07T16:07:46.352-0700 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
[23:18:48] <Trinity> 2016-08-07T16:07:46.353-0700 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
[23:18:52] <Trinity> connect@src/mongo/shell/mongo.js:229:14
[23:18:54] <Trinity> @(connect):1:6
[23:18:56] <Trinity> exception: connect failed
[23:18:58] <Trinity> whoops!! sorry i shouldve used pastebin