[06:49:14] <darius93> question, does mongo perform any locks when you have two or more connections from different applications inserting, updating, or even finding anything from the collection?
[07:32:52] <kali> darius93: there is a per database one-writer-or-many-readers lock
[07:34:13] <darius93> ok i was just wondering. It shouldnt become a problem though
[08:27:35] <crapwagon> what's the argument for using mongo db? i have three main kinds of data structures, collections of file metadata that i access by id, and sets of ids that i use to define categories, plus some user authentication store
[08:27:41] <crapwagon> i was just going to use redis with its slower write to disk mode since nothing needs to be 100% garanteed to persist
[08:27:49] <crapwagon> but i see mongo is used a lot by people and wanted to get a better understanding
[08:28:17] <crapwagon> i could even just use a traditional sql rdbm
[08:30:10] <kali> crapwagon: well, one could say that mongodb is somewhere in between redis and relational databases
[08:40:31] <crapwagon> kali: can you elaborate / provide me something good to read
[08:41:19] <kali> well, in redis, you have structures that mimick closely the usual programming data structures (list, hash, set, etc)
[08:42:23] <kali> so you have to design your datamodel to what the queries will be
[08:43:06] <kali> in relational, it's the opposite. you store your data in the most abstract and concice way possible, then everything complex is done when you perform selects
[08:43:48] <kali> in mongodb, you're somewhere in between: there is some flexibility in the data model that will allow you to store complex stuff easily, and, to some extent, query it efficiently with indexes
[08:45:05] <kali> crapwagon: does it make better sense ?
[08:45:42] <crapwagon> yeah i already understand that
[08:46:44] <Chillance> ok, if my query includes this: "data.private": false, it won't return documents that does not even have this one. what to do to include them?
[08:46:52] <crapwagon> i'm looking more at emperical advantages in terms of replication, managing growth / structural change, etc
[08:47:24] <crapwagon> i mean traditional sql has a lot of strengths hwen you have large well normalized data that make up for the protocol, DSL and drivers being all over the show
[08:47:43] <crapwagon> and redis is patently an excellent system if your ram is sufficient and you define your schema in a useful manner
[08:47:54] <crapwagon> that's why i was looking for some good reading on the subject of mongo
[08:47:57] <kali> Chillance: what about "data.private" : { $ne: true } ?
[08:48:22] <Chillance> oh, that might be something I should use instead
[08:49:02] <kali> crapwagon: well, for structural changes, mongodb is more flexible. adding a field, or an index, is relatively painless
[08:49:03] <Chillance> thing is, its a problem when new documents have new functionality data.. but I need to catch older documents too
[08:50:03] <kali> crapwagon: for growth and replication, redis may have catch up now, i'm not too sure. a few years ago, replication and failover in redis was very painful compared to mongodb
[08:54:08] <kali> also, mongodb does not become totally useless when your dataset is too big for the memory :)
[08:55:07] <crapwagon> right i didn't want to steer this toward a vs discussion
[08:55:20] <crapwagon> i was looking for some good writing on the topic of 'why mongo db'
[12:09:05] <boutell> good morning. What’s the deal with the mongodb node driver README suddenly calling it “mongodb-legacy” and not documenting anything? Is there an announcement somewhere I should be reading about the mongodb-core module and why the old driver is terminating?
[12:11:31] <boutell> OK, this makes no sense… this claims to be what you get with “npm install mongodb":
[12:11:54] <boutell> but https://www.npmjs.org/package/mongodb says something completely different.
[12:23:56] <boutell> OK, npm install is fine, I think the npm website is doing something crazypants. I’ve bugged them about it
[14:26:44] <voidDotClass> guys, what's a simple mongo db gui that i can quickly setup on linux?
[14:27:27] <voidDotClass> i'm new to mongo and just want to be able to see the data which is in the db
[15:11:36] <someone-noone> Hello. How can I use Timestamp.fromString, fromInt, toInt, etc ? That's described here: http://mongodb.github.io/node-mongodb-native/api-bson-generated/timestamp.html#tonumber
[15:11:48] <someone-noone> I try in mongo shell: var k = new Timestamp()
[15:12:16] <someone-noone> but k.toInt() and other functions produces error: TypeError: Object Timestamp(0, 0) has no method 'toInt'
[16:08:21] <netameta_> bodgix, i see and how do i tell mongo on which user to run? i mean i understand how to change the folder / set its permission, but dont see anywhere where i can set which user
[19:13:05] <lgm> Has anyone run into this error when dealing with setting up a cluster?
[19:14:15] <lgm> "$err" : "error creating initial database config information :: caused by :: can't find a shard to put new db on",
[19:14:58] <lgm> i was succesfully running tests then cleaned everything up on my machines to run again in a pristine state and now i can't start up sharding.
[22:51:53] <cheeser> just bind to something other than localhost
[22:53:55] <fels_zh> I need some help model data - can someone help?
[22:55:38] <fels_zh> I have following models : Community. each community has a directory and each directoy has 1- many categories each category has 1 to many listings