[DOCS-5561] Namespace limits disagree in different places Created: 04/Jun/15  Updated: 10/Jun/15  Resolved: 10/Jun/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Andrew Ryder (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 8 years, 36 weeks ago

 Description   

http://docs.mongodb.org/manual/reference/limits/#Namespace-Length

The maximum length of the namespace, including the database and collection name, is 120 bytes.

http://docs.mongodb.org/manual/faq/developers/#are-there-any-restrictions-on-the-names-of-collections


The maximum size of a collection name is 128 characters, including the name of the database.

There are three problems:

  1. 128 versus 120. I believe that 120 is correct, but the FAQ says 128.
  2. Characters are not equal to bytes. A character may take up more than 1 byte (UTF-8). I believe that 120 bytes is correct.
  3. "Collection" + "database" actually loses one byte (in this case a single character) for the period between components ("db.col"). I don't know if this is accounted for or not. It may explain the curious difference in claims here (128 minus the nul and period is already 126 or less).


 Comments   
Comment by Githook User [ 10/Jun/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5561 singlesource collection namespace limit
Branch: master
https://github.com/mongodb/docs/commit/f52366da723a3df2e8334d89c83f5cf06dd77eb0

Comment by Githook User [ 10/Jun/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5561 singlesource collection namespace limit
Branch: v2.6
https://github.com/mongodb/docs/commit/382c962170cbc970c0213d42f3d69ae35f7ad243

Generated at Thu Feb 08 07:50:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.