Erik
Erik

Reputation: 14780

nodejs storing session in separate dbs

I have nodejs application with express. I store my session in mongodb. But also I store application data that I store in the same db. Should I create another mongodb database for a sessions?

Upvotes: 0

Views: 94

Answers (1)

alessioalex
alessioalex

Reputation: 63683

You can use the same database, but have different collections (a collection in MongoDB is somehow similar with what MySQL calls table). That would be ok too.

Upvotes: 1

Related Questions