PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 14th of September, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[03:48:14] <RRCFD> hey fels
[03:48:21] <RRCFD> wasup
[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:33:06] <kali> darius93: it's rarely an issue
[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:28:20] <crapwagon> +s
[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:31] <boutell> https://github.com/mongodb/node-mongodb-native
[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'
[15:12:44] <someone-noone> I'm sorry. It
[15:12:54] <someone-noone> It's look like I read wrong documentation
[15:47:57] <netameta_> After installing mongoDB on ubuntu, how can i use username/password to access it from another server ?
[15:57:37] <bodgix> netameta_: use <DBNAME>
[15:57:45] <bodgix> db.addUser(
[15:57:45] <bodgix> {
[15:57:45] <bodgix> user: "podwozka_web",
[15:57:45] <bodgix> pwd: "podwozka_web",
[15:57:45] <bodgix> roles: [ "readWrite" ]
[15:57:46] <bodgix> }
[15:57:46] <bodgix> )
[15:58:30] <netameta_> that's javascript . is there a way of doing it through command line ?
[15:59:00] <netameta_> or how do i make mongo run not on root user ?
[16:07:07] <bodgix> netameta_: you execute it in mongo shell
[16:08:03] <bodgix> on my debian system it doesn't run as root by default
[16:08:17] <bodgix> it runs as mongodb
[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
[16:08:33] <netameta_> let me check
[16:10:37] <edin_nusric> Anyone recommend me a good book, that also has section on doing (simulating) inner/outer joins with mongodb ?
[16:10:58] <netameta_> mongodb // nogroup - good
[16:11:27] <netameta_> i will check if the folder is set and i guess i am good to go
[16:11:37] <netameta_> well other then opening ports
[16:12:34] <netameta_> Yep folder is set to right user
[16:23:47] <netameta_> bodgix, where can i find more on mongo shell?
[16:23:53] <netameta_> or on user management
[16:31:02] <bodgix> http://docs.mongodb.org/manual/reference/method/#user-management-methods this wasn't very hard to find...
[16:51:01] <netameta_> Thanks bodix,
[18:49:10] <Zelest> fl0w, who got your vote? :)
[19:12:41] <lgm> Hello!
[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:09:42] <fels_zh> hi guys
[22:09:44] <fels_zh> anyone here ?
[22:14:39] <joannac> fels_zh: if you had asked your question, you might have an answer by now
[22:15:41] <fels_zh> joannac: thx - I wanted to know about referencing an object (like F K in old style db) -
[22:15:51] <fels_zh> I'm trying to use c#
[22:19:03] <fels_zh> http://pastebin.com/r8UkSF4b I have similar to this ? is this correct ?
[22:46:25] <netameta> Do i need to enable someinthing in order for mongo to accept remote connections ?
[22:51:23] <cheeser> nope
[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
[22:56:11] <fels_zh> how wouls i model this ?