[SERVER-44692] Question releted to _id field Created: 18/Nov/19  Updated: 19/Nov/19  Resolved: 18/Nov/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: JAY KHANT Assignee: Carl Champain (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

hie, I have DOUBT about the "_id" field. I am using my collection name as a combination of three _id's and there is a limit of collection name is 120 bytes. currently, there is no issue. If _id length is gone increase in the future then it creates a problem to create a collection in MongoDB. So, my question is:- Is there any possibility of the changes in the length of the _id field in the future?



 Comments   
Comment by JAY KHANT [ 19/Nov/19 ]

Thank you very much for your answer.

Comment by Carl Champain (Inactive) [ 18/Nov/19 ]

Hi jay.khant.79@gmail.com,

The current maximum length of the collection namespace will be removed in the next major release of MongoDB. So even if the size of _id happens to change, you will still be able to use the described combination as there won't be anymore size limit on the collection namespace. I hope this helped answering your question.

That said, the SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to be a bug, I will now close it.

Kind regards,
Carl

Generated at Thu Feb 08 05:06:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.