Namespaces
Namespace Length
The maximum length of the collection namespace, which includes the database name, the dot (.) separator, and the collection name (i.e. .), is 120 bytes.
Number of Namespaces
Changed in version 3.0.
For the MMAPv1 the number of namespaces is limited to the size of the namespace file divided by 628.
A 16 megabyte namespace file can support approximately 24,000 namespaces. Each collection and index is a namespace.
The WiredTiger storage engine is not subject to this limitation.
Size of Namespace File
Changed in version 3.0.
For the MMAPv1 storage engine, namespace files can be no larger than 2047 megabytes.
By default namespace files are 16 megabytes. You can configure the size using the nsSize option.
The WiredTiger storage engine is not subject to this limitation.