Skip to content

MongoDB 多租户方案 #4

@StephenYjw

Description

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions