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

MongoDB 多租户方案 #4

Open
StephenYjw opened this issue Jun 4, 2020 · 0 comments
Open

MongoDB 多租户方案 #4

StephenYjw opened this issue Jun 4, 2020 · 0 comments

Comments

@StephenYjw
Copy link

StephenYjw commented Jun 4, 2020

  1. 一个租户一个DB
  2. 同一个DB多个collection,通过collection_{租户Id}区分
  3. 所有数据都在同一个collection中,通过租户Id区分

能介绍下3种方案的应用场景吗?目前租户有500+,每个租户数据都在千万级以上。

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

No branches or pull requests

1 participant