Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing user data #24

Closed
mmnoo opened this issue Jul 10, 2014 · 3 comments
Closed

Storing user data #24

mmnoo opened this issue Jul 10, 2014 · 3 comments

Comments

@mmnoo
Copy link
Contributor

mmnoo commented Jul 10, 2014

[@jywarren asked why 2 databases are necessary, one for application data, the other for user data]

That may just be a convention (for better or worse) that I picked up somewhere.

Im not finding much documentation online detailing the argument for or against separating the users collection into a new Mongo db, so maybe it isnt a thing people do? I do know that an extra connection uses a bit more juice.

What do you think? I did manage to get through the problem of creating multiple connections, but it shouldn’t be a problem to rework the code to use stick users in the WhereWeBreathe db.

Do you think I've taken the modularity too far?

@mmnoo mmnoo added duplicate and removed duplicate labels Jul 10, 2014
@jywarren
Copy link
Member

I haven't done 2 databases in the past, as separating by table is plenty. Does it create problems for joining tables or anything? I'm not a big NoSQL person so i just don't have the background. It might be a good question for the plots-dev google group, as i think there are a variety of node devs living in there :-)

@mmnoo
Copy link
Contributor Author

mmnoo commented Jul 15, 2014

Either way, as I understand it, there arent joins with noSQL. One has to get the application itself to do the 'joins'. (Although, embedding/nesting documents inside other parent documents removes the need for joins, where that is practical... its probably not a solution in this context)

@jywarren
Copy link
Member

ok yeah i guess that makes sense. And if we ever want to migrate to an sql
db, we can just import it all into one db.

On Tue, Jul 15, 2014 at 2:58 PM, Melissa notifications@github.com wrote:

Either way, as I understand it, there arent joins with noSQL. One has to
get the application itself to do the 'joins'. (Although, embedding/nesting
documents inside other parent documents removes the need for joins, where
that is practical... its probably not a solution in this context)


Reply to this email directly or view it on GitHub
#24 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants