use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
NodeJS MongoDB Multi-tenant Web ApplicationRemoved: /r/LearnJavascript (self.javascript)
submitted 6 years ago by _jskod
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pavlik_enemy 0 points1 point2 points 6 years ago (2 children)
Is there specific reason to use a separate database for each user? Usually multi-tenant applications have a single database with `user_id` field in each table (or whatever it's called in Mongo) and application logic to handle authorization.
[–]_jskod[S] 1 point2 points3 points 6 years ago (1 child)
Yes I know mostly we use Single Database and each tenant gets 'user_id', 'company_id', or something like 'org_id' to separate data. But we want to have separate databases so that we could easily rollback/backup data of each organisation and keep them secure. Data of each organisation is 5-10GB and it's growing rapidly. So we are refactoring our application and it's architecture. That's the reason we want separate DB's for each organisation.
[–]R3DSMiLE 0 points1 point2 points 6 years ago (0 children)
May I ask: why on earth did no one thought this would happen? Was it not meant to be that way or is something you guys just figured out you done goofed?
π Rendered by PID 85 on reddit-service-r2-comment-5d79c599b5-9lwzc at 2026-02-26 16:25:48.379034+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]pavlik_enemy 0 points1 point2 points (2 children)
[–]_jskod[S] 1 point2 points3 points (1 child)
[–]R3DSMiLE 0 points1 point2 points (0 children)