Maximum number of databases supported by MongoDB

后端 未结 2 850
余生分开走
余生分开走 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

    0 讨论(0)
  • 2021-02-04 07:17

    There's no explicit limit, but there are probably some implicit limits due to max number of open file handles / files in a directory on the host OS/filesystem.

    see: http://groups.google.com/group/mongodb-user/browse_thread/thread/01727e1af681985a?fwc=2

    0 讨论(0)
提交回复
热议问题