Are default _id fields for MongoDB documents always 24 characters?

Posted by ottobar on Stack Overflow See other posts from Stack Overflow or by ottobar
Published on 2010-04-13T20:59:46Z Indexed on 2010/04/13 21:03 UTC
Read the original article Hit count: 252

Filed under:

As part of my application requirements, I have a limit of 30 characters for an ID field. This is out of my control and I am wondering if the MongoDB default _id fields will work for me. It appears as though the default _id field is 24 characters long. That works for me, but I am wondering if this is likely to change in the future. I am well aware that things can always change, but, for the next year or two, can I expect there to be 24 character default _id fields?

© Stack Overflow or respective owner

Related posts about mongodb