What is the recommended approach towards multi-tenant databases in MongoDB?

后端 未结 6 1182
轮回少年
轮回少年 2020-12-02 04:08

I\'m thinking of creating a multi-tenant app using MongoDB. I don\'t have any guesses in terms of how many tenants I\'d have yet, but I would like to be able to scale into t

6条回答
  •  我在风中等你
    2020-12-02 05:02

    I would go for option 2.

    However you could set mongod.exe command line option --smallfiles. This means that the biggest file size of an extent will be 0.5 gigabyte and not 2 gigabyte. I tested this with mongo 1.42 . So option 3 is not impossible.

提交回复
热议问题