[DOCS-3228] Inconsistency between index name limit documentation Created: 21/Apr/14  Updated: 30/May/14  Resolved: 30/May/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.6

Type: Bug Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Tim Slavin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 37 weeks, 5 days ago

 Description   

From http://docs.mongodb.org/manual/reference/method/db.collection.ensureIndex/:

Index names, including their full namespace (i.e. database.collection) cannot be longer than 128 characters. See the getIndexes() field name for the names of existing indexes.

Contrast this with http://docs.mongodb.org/manual/reference/limits/#Index-Name-Length:

The names of indexes, including their namespace (i.e database and collection name), cannot be longer than 125 characters. The default index name is the concatenation of the field names and index directions.

I believe the latter example is omitting the "." that would appear between the database/collection and the ".$" collection/index tokens.

Either way, we should probably discuss this limit consistently everywhere, whether that means listing the total limit or deducting the periods and explaining their presence.



 Comments   
Comment by Githook User [ 30/May/14 ]

Author:

{u'username': u'TimSlavinMongoDB', u'name': u'Tim Slavin (MongoDB)', u'email': u'tim.slavin@10gen.com'}

Message: DOCS-3228: clarify index name limits

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/26c2340d786784858cd037ed4d09496aa5e3fb29

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