PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 4th of July, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[03:28:23] <rusty78> Hi quick question if anyone is around
[03:28:28] <rusty78> For heroku
[03:28:32] <rusty78> For scaling with nodejs and mongodb, if I don't have sharding setup - will adding more dynos do nothing for improving my setup?
[03:31:24] <cheeser> what would those dynos do?
[03:32:17] <rusty78> From their site I can't tell if it's vertical or horizontal scaling by adding more dynos
[03:32:26] <rusty78> I was hoping someone more experienced with heroku would be able to comment
[03:36:56] <Boomtime> rusty78: AFAIK, dynos are application instances - so in regards to improving your setup, that depends on where your current setup has limitation / bottleneck.. is it the application?
[03:37:43] <Boomtime> more plainly: what is the existing issue that you are trying to address?
[03:38:13] <rusty78> Boomtime: thank you for responding, and I am setting up a heroku instance for the first time and I am trying to wrap my head around scaling the app
[03:38:34] <rusty78> I have not setup sharding/clustering for my app right now, and I am just running off a replica set for alpha stage
[03:39:04] <rusty78> And I am basically confused if adding more dynos would affect how my db works
[03:39:09] <rusty78> Or am I completely retarded.. heh
[03:39:56] <rusty78> Right now I am using mongoLab, but if I use multiple dynos would that affect how my app is run?
[03:41:37] <Boomtime> you're right, that's quite specific to heroku - i do not know the relationship between what is used to host the mongodb versus what is used to host the application
[03:41:54] <Boomtime> it seems you need to figure that out first
[03:42:00] <rusty78> Fair enough, it's mongodb chat so it's a rather odd question
[03:42:18] <Boomtime> worth a try, but i think you're chances are slim
[07:48:29] <Jonno_FTW> how can I query if a field is one of many values?
[15:23:48] <paperziggurat> Hi, I'm attempting to call db.getCollection('posts').find({}, {sort: {post_id: 1}}) and am getting the following error $err" : "Can't canonicalize query: BadValue Unsupported projection option: $sort: { post_id: 1.0 } -- I have done stuff like this before in the past and am not sure why I'm getting this error now.
[15:24:11] <paperziggurat> Calling find({}) produces results
[16:15:53] <Bish> Hi, if i have a huge load of users, which belong to many different groups, how would you model it in mongodb?
[16:16:10] <Bish> i heard mongoddb doesn't work well with relations, so i don't know what to do
[16:16:37] <Bish> ofc i could do {...group:"elite"...} but that would make it difficult to remove the group, right?
[16:17:19] <Bish> or if i wanted to do changes to the whole group
[16:23:38] <kali> hello there
[16:24:45] <Bish> hi!
[21:28:30] <EXetoC> is there actual documentation for the new protocol? I'd like to be able to receive WriteResult for example in my driver
[21:43:59] <Bish> ;;
[22:11:09] <EXetoC> I'm going to read the C driver source again and see if I can figure things out
[22:11:29] <Someguy123> can anyone tell me why this doesn't work? I'm trying to remove a name from "sent_contacts" and "pending_contacts", then add a contact to two names https://gist.github.com/Someguy123/8e054a70f6eba000ddb7
[22:11:42] <Someguy123> what happens is, the contact seems to be inserted, but the sent/pending is never removed
[22:12:04] <Someguy123> GothAlice, if you have any ideas from last time, that would be great, it seems to be broken even without async now
[22:12:07] <Someguy123> and I have no idea why
[22:13:35] <Someguy123> I feel like mongodb is overwriting it somehow
[22:14:02] <Someguy123> i.e. it's removing the contact, but then the ones that add it are overwriting it with the state before the contacts got removed
[22:17:58] <Someguy123> Bish, I believe mongodb isn't the database you want
[22:18:46] <Bish> Someguy123, why is that?
[22:18:47] <Someguy123> even though it's possible to have a "groups" collection, and have a list of groups inside of your users or whatever, relations are really iffy still
[22:19:11] <Someguy123> the node mongoose ORM has a populate function which makes it slightly easier (I wish I knew that before I did my application with the core driver)
[22:21:15] <Someguy123> Bish, what is your applications purpose? what does it do?
[22:21:57] <Bish> Someguy123, complexity is not the problem, speed would be tho, it's like a messenger with groups ( very similiar to irc, if i think about it )
[22:22:57] <Someguy123> well, relational databases aren't slow in any way, realize that facebook and google both still use MySQL for a large portion of their data
[22:24:10] <Someguy123> since you're joining data, I would definitely recommend something like MySQL/MariaDB/Postgres
[22:24:24] <Someguy123> mongo makes that quite a pain
[22:24:47] <Someguy123> there's also RethinkDB which is similar to mongo with documents, but actually has build in joins
[22:25:16] <Someguy123> so you could r.users.find().join(groups) or something similar
[22:25:21] <Someguy123> Bish, ^^^
[22:26:40] <Bish> i never said mysql was slow, i was scared mongodb is
[22:26:47] <Bish> but i dislike using SQL
[22:31:38] <Someguy123> Bish, and I thought I disliked SQL, until I realized how annoying it is to do a lot of things in mongodb
[22:32:26] <Someguy123> though I feel like node is probably partially to blame
[22:33:07] <Bish> well i too think mysql is the better choice
[22:34:54] <Someguy123> Bish, don't forget you can always mix and match technologies
[22:35:10] <Someguy123> for example, store messages in MongoDB, but keep user and group data inside of MySQL
[22:36:08] <Someguy123> now, can anyone here please help me with my strange update issue?
[22:36:18] <Someguy123> [23:09:19] <Someguy123> can anyone tell me why this doesn't work? I'm trying to remove a name from "sent_contacts" and "pending_contacts", then add a contact to two names https://gist.github.com/Someguy123/8e054a70f6eba000ddb7
[22:36:18] <Someguy123> [23:09:32] <Someguy123> what happens is, the contact seems to be inserted, but the sent/pending is never removed
[22:36:22] <Bish> well the product isn't that big, i rather leave me area of failure small
[22:37:25] <Someguy123> Bish, then you may want to stick with a normal RDBMS
[22:37:49] <Someguy123> feel free to use mongodb if it works for you, but I feel you may have a better experience with an RDBMS in your use case
[22:39:50] <Someguy123> EXetoC, do you have any idea?
[22:59:03] <Someguy123> :/