[00:09:12] <janitto> StephenLynx: what about billing related stuff? could i get in trouble if mongo doesn't have transactions? is it a good idea to be playing around with money related stuff?
[00:18:29] <StephenLynx> lynxhub.com is the biggest system I ever had running with mongo.
[00:18:51] <janitto> i would probably be using mongolabs or another hosted service, i'm hoping that a lot of that stuff will be avoided by having people who know what they're doing involved
[00:19:53] <StephenLynx> I am not paying more instead of just RTFM' ing
[00:20:12] <StephenLynx> plus if that goes south I don't care.
[00:20:19] <StephenLynx> I can just wipe everything.
[07:33:58] <Rou> Does mongodb work for lubuntu 15.04?
[08:55:22] <frenchiie> can someone explain to me what parameters i should put for the pymongo function find_one_and_update() if i want to update a document with it's name stored in var name and the key of the value being var key and the value being "0"?
[09:01:10] <frenchiie> going to log for now but will check the irclogger later, i appreciate any answer.
[12:18:04] <hkariti> hi all. i have a quick question about config servers - does it make sense to put them in different dcs? I was thinking of putting one with the backup replicas of all the shards, for DR purposes.
[15:40:22] <repxl> Why does this not work http://pastebin.com/avZQFwej i want to make sure the user_id is allways matched + or search tags or string
[15:42:30] <repxl> or how i can search for tags including normal name in one query _?
[15:43:17] <repxl> so when i write #fish tunaspecial it find me the tag #fish and the name "tunaspacial" also the user must match
[15:43:44] <repxl> and when you write only #fish it leaves the normal regex name search
[19:57:30] <frenchiie> i looked at the irclogger to see if anyone answered mine and nope. Also the next two people who asked questions didn't get an answer...
[19:59:44] <frenchiie> can someone explain to me what parameters i should put for the pymongo function find_one_and_update() if i want to update a document with it's name stored in var name and the key of the value being var key and the value being "0"?
[19:59:45] <StephenLynx> on the other side of the spectrum you get stuff like "yeah, I dunno, educate yourself"
[19:59:50] <StephenLynx> like on the systemD channel
[20:01:35] <StephenLynx> yeah, if someone there read the doc they should be able to assist you.
[20:02:50] <mprelude> Hi, I'm trying to understand the localhost exception. I thought it was that I can connect until I've defined a user. I went ahead and added a user to the 'admin' database (as per the docs) and the login works, but when I go to my 'test' database, I can still connect, view and add collections & documents without authenticating. How can I prevent this?
[20:03:10] <StephenLynx> have you enabled authentication?
[20:03:30] <StephenLynx> afaik its disabled by default.
[20:03:44] <StephenLynx> you have to both have users and have it enabled so mongo will apply permissions.
[21:05:11] <JFlash> they wanted to test it against a test load of 100 million users but then they get capped by money restrictions
[21:05:37] <StephenLynx> again, I will give you my opinion.
[21:05:48] <JFlash> but they say there's nothing on the implementation that hints of the system breaking apart beyond that number. the scaling has been proving to be horizontal
[21:06:03] <StephenLynx> tools do can be forced to operate on scenarios where they usually don't fit well, but there will always be compromises and limitations.
[21:10:10] <JFlash> 95% of the db load in a social network type of app is nothing more than content consuption.. aka... ppl scrolling timelines as crazy
[21:10:40] <JFlash> this translates a shitload more reads than writes
[21:11:17] <JFlash> and it turns out..(correct me if I'm wrong) that such data can be aggregated into documents..
[22:29:46] <damoncasale> I have a use case that I'd like to try to find the "right" Mongo architecture for. Let's say I have a one-to-many relationship that I'd like to define. Let's say I'm attempting to define the relationships between posts and comments. Each post is owned by a user, and each comment is owned by a user. I want to be able to retrieve all of the posts that have comments by me, a specific user.
[22:30:11] <StephenLynx> I would keep posts in their own collections
[22:30:20] <StephenLynx> with a field having an unique identifier of the user.
[22:30:23] <JFlash> damoncasale, what kind of app are you creating?
[22:30:55] <StephenLynx> and preferably a user-friendly identifier of the user, like reddit does with your login.
[22:31:12] <StephenLynx> so you don;t have to fetch the user nor duplicate his display name.
[22:35:48] <StephenLynx> I prefer to not embed complex objects
[22:36:22] <StephenLynx> because it limits what you can do regarding queries and projection. and depending on the case, you could hit the 16mb limit cap on documents.
[22:37:23] <StephenLynx> so there are even more pitfalls for arrays that you expect to expand indefinitely, like posts.
[22:44:42] <JFlash> StephenLynx, the other alternative I was considering was using neo4j :(
[23:03:19] <damoncasale> I have flaky internet and I couldn't change my nick after my 'net reconnected. -_-
[23:04:04] <JFlash> damoncasale, would you use mongodb for a social network project?
[23:04:10] <damoncasale> Anyway, my issue is that I don't know how to query for all of the posts with comments by comment_user. I want a unique list of posts, too.
[23:04:25] <JFlash> damoncasale, what kind of app are you creating?
[23:04:36] <damoncasale> It's not a social network, it's something else.
[23:04:43] <damoncasale> I'm just using that as an example.
[23:04:56] <JFlash> no I am the one createin the social network :)
[23:26:43] <damoncasale> Let's say I have three posts with five comments each. Each comment has a different comment_user. I want to get all posts that have comments where comment_user=X.
[23:26:44] <StephenLynx> I just hang around when I am working
[23:27:04] <JFlash> StephenLynx, what language do you use at work?
[23:27:06] <StephenLynx> you could keep comments on their own collection too.