Maximum number of databases supported by MongoDB

后端 未结 2 851
余生分开走
余生分开走 2021-02-04 06:45

I would like to create a database for each customer. But before, I would like to know how many databases can be created in a single instance of MongoDB ?

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 07:07

    By default, you can run some 12,000 collections in a single instance of MongoDB( that is, if each collection also has 1 index).

    If you want to create more number of collections, then use --nssize when you run mongod process. You can see this link for more details:

    http://www.mongodb.org/display/DOCS/Using+a+Large+Number+of+Collections

提交回复
热议问题