[10:17:15] <jrtappers> I'm using the mongo/db/audit.cpp hooks for a research project, but I seem to get 2 calls to logAuthentication, I think I have missed something, because I see 2 login attempts, is there one per database?
[10:17:48] <jrtappers> Because that is the only way I can explain the double login events
[12:13:54] <zealsham_> what is best metho to show realtionship in mongodb
[12:14:28] <DeltaHeavy> Hey, so I often see in other rooms MongoDB gets a lot of hate when it's used where an RDBMS could be used. When I see MongoDBs marketing videos, it sort of backs up the whole "baseless hype" in my mind (https://www.youtube.com/watch?v=CvIr-2lMLsk). Articles like this are fairly in-line with what I think http://www.sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/. Interesting in hearing some opposing viewpoints
[12:19:42] <DeltaHeavy> zealsham_: You are what? I was asking for opposing viewpoints, unless you're asking me to state why I currently have the opinion of RDBMSs being preferred over MongoDB for most generic CRUD app use cases.
[12:21:09] <zealsham_> DeltaHeavy: i read the articles . i dont k now mysql properly . and modeling databases with RDBMS is hard . performing those joins and data normalization is quite hard for a newbie to an extend
[12:23:07] <DeltaHeavy> I agree, that is something I think MongoDB is good for, a low learning curve. I think that might turn around and bite you in the ass though later on.
[12:23:18] <DeltaHeavy> I don't hold these views strongly, I've never used MongoDB extensivly
[13:26:06] <Derick> hehehe: "find a text string" - you need to be more specific.
[13:26:45] <Derick> zealsham_: MongoDB does not do relations between documents in your traditional SQL Foreign Key way
[13:27:30] <Derick> DeltaHeavy: IMO, most of the "MongoDB sucks" articles, are in the form of that 2013 article you linked. In most cases, it is people using technology for the wrong reasons, or while not understanding it properly.
[13:28:11] <zealsham_> Derick: derrick i understand that it uses either the refrence method or the embedding method.
[13:28:11] <Derick> hehehe: and also, trashing the work of my coworkers will not gain you brownie points.
[13:28:23] <Derick> zealsham_: OK - then, what is the question? :)
[13:28:50] <zealsham_> Derick: how to do that properly in other to avoid data duplication
[13:29:56] <DeltaHeavy> Derick: I do think MongoDB has it's uses but I almost always see people trying to use it as "MySQL/PostgreSQL but easy~~~". Would you agree it's not a good idea to use it in place of an RDBMS like that and use it for specific use cases?
[13:31:02] <Derick> zealsham_: you should not be scared duplicating data
[13:31:25] <Derick> DeltaHeavy: In many many cases, it is as good (if not better) for CRUD like apps than MySQL
[13:31:36] <Derick> but there are a few cases where you just really need a RDBMS
[13:32:00] <Derick> that said, DeltaHeavy, you do need to use MongoDB *correctly* and think about how to design your schema
[13:32:46] <Derick> zealsham_: You need to let go of RDBMS design tactics. Unlike an RDBMS, with MongoDB you design you schema according to your application's needs and *not* how to store the data most optimally
[14:28:11] <DeltaHeavy> Derick: Would you say MongoDB is easier to screw up and can cause large headaches due to such things in your application level code than a RDBMS?
[14:34:03] <hehehe> db.stores.find( { $text: { $search: "java coffee shop" } } ) - this searches for java or coffee or shop in all collections of database stores?
[14:35:20] <Derick> and yes, that query should work
[14:35:36] <Derick> (As long as you create a text index on the right fields)
[14:36:02] <hehehe> so howto could say For example, you could use the following query to find all fields in a collection stores containing any terms from the list “coffee”, “shop”, and “java”
[14:48:58] <sandman13> Is there a hard and fast rule for config-servers? If I have 2 sharded cluster with 2 replica sets on each server, how many config-servers do I need?
[15:03:09] <DeltaHeavy> Derick: Do you agree that MongoDB makes it easier to not apply constraints to your data and overall doesn't do as good a job as an RDBMS assuming an RDBMS is a good fit for the job too?
[15:04:45] <hehehe> if not for rocketchat I would not touch mongo
[15:13:43] <hehehe> then why search yet to work! :D
[15:13:54] <Derick> DeltaHeavy: MongoDB can apply these constraints though - through validators. But you don't have to use them. Makes it more flexible, but also sometimes it means logic gets pushed to the application layer(s).
[15:13:55] <hehehe> inoperable: welcome to mad room
[15:29:27] <Derick> lemonlake: ah, I think all your apps do *not* specify the replSet=yourName option when connecting to mongodb. You might need to change their connection strings
[15:51:34] <leolove> Hi. I need a very simple question to ask. My team and I was arguing over using mongodb exclusively or in polygot design. What is your opinion about that? What real-world non-technical explanation I can give to management convincing them that a small app can simply be using mongo exclusively?
[17:59:30] <lemonlake> and all the data that i had _before_ i converted it to a replicaset is gone
[21:44:17] <jrdn24> So, I have a database that I need to process N results at a time and make sure no other processes touch the results that are processing in previous requests
[21:44:56] <jrdn24> i was hoping for a findAllAndModify command, so without this, is the only way to create a unique ID, update N amount with it's id, then query that ID?