PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 18th of June, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[09:47:18] <seekerofjoins> Hey everyone, I'm using mongoengine and trying to figure out a way to query one collection for documents that have a certain value in a different document that they reference
[09:48:07] <seekerofjoins> (meaning, I have collection A, with each document referencing a document in collection B, and I want to query for documents in A whose corresponding B has a certain value in a field
[09:48:12] <seekerofjoins> How do I do that?
[09:50:35] <Derick> by using two queries, likely.
[13:00:34] <HaZ7> Hey after starting a mongodb database service, i can't type any mongo commands inside the terminal... where do I type the commands?
[13:02:29] <Derick> in the mongo client
[13:02:52] <HaZ7> it wont let me type anything inside the terminal window
[13:03:32] <HaZ7> maybe im doing something wrong
[13:03:46] <HaZ7> i used sudo mongod to start it
[13:03:58] <Derick> if the mongodb deamon is running, and not forked as a daemon, it takes up the terminal
[13:04:04] <Derick> open a new one and try there?
[13:05:36] <HaZ7> I got it to work but I don't know how it's exactly working
[13:05:49] <HaZ7> i had to do "sudo service mongod start"
[13:06:03] <HaZ7> then i did mongo --host 127.0.0.1:27017
[13:06:08] <HaZ7> then it started accepting commands finnaly
[13:06:13] <Derick> yes, that seems correct
[13:06:18] <Derick> the "mongo" command is the client
[13:06:19] <HaZ7> doesn't the first command "sudo service mongod start" start the server already?
[13:06:28] <HaZ7> why do i have to do --host 127.0.0.1:27017
[13:06:28] <Derick> the "service start" is the database server (mongod binary)
[13:06:32] <Derick> you dont
[13:06:39] <Derick> just "mongo" should do it
[13:07:09] <HaZ7> yes mongo works as a replacement for the second command i wrote
[13:07:23] <HaZ7> but before i do "mongo" i have to do "sudo service mongod start" ?
[13:07:29] <Derick> yes
[13:07:48] <HaZ7> thank you @Derick
[13:07:52] <Derick> two parts: the server (mongod) which you need to run in the background, like you would do with mysqld — and "mongo" which is the client interface
[13:08:12] <HaZ7> thank you, just starting out on my web development journey, everything seems foreign atm :)
[13:08:15] <HaZ7> appreciate it
[14:56:06] <ac_slater> hey guys, is this the best channel to ask for mongocxx driver help?
[14:58:06] <Derick> probably
[14:58:28] <Derick> i don't think many people will know about it though
[14:58:31] <Derick> but go and ask ahead
[15:16:56] <wreed> hi guys im following the mongoose docs for populating a many to many relationship but im a little confused if its intentional that they only set the story's reference to the author and not the authors reference to the story. can mongoose do any of this automatically and thats why? http://mongoosejs.com/docs/populate.html
[15:17:30] <Derick> wreed: you should ask the mongoose authors really
[15:18:06] <wreed> yeah i just figured i would ask here in case anyone was familiar :/
[16:53:09] <davocko> I need to do a $group after a $lookup over an aggregation pipeline but it takes forever .... is there something I can do to speed it up or a workaround?
[18:58:49] <Derick> only think you can try is to limit the amount of documents coming through the pipeline I think
[19:37:25] <guardian> hello, is this an acceptable place to report errors 500 when following mongodb university courses?
[19:38:15] <threespades> there should be something inside the university page for that
[19:38:18] <threespades> this is just an irc chat
[19:39:30] <threespades> https://university.mongodb.com/contact?jmp=nav
[19:39:57] <guardian> thanks
[20:21:48] <micseydel> Hello. I'm surprised by some results I'm seeing a console. db.achievement.find({params: {requiredCount: 4}}) yields one document, as expected, but then db.achievement.find({params: {requiredCount: {$gt: 1}}}) yields zero. I can't see what am doing wrong. Is my syntax off?