Maximum length of the document id

What is the maximum length of the document’s id (or _id) supported by Couchbase (Couchbase Server, Sync Gateway, Couchbase Lite Android/iOS) ?

I am asking because I am planning to use concatenated uuids of upto 3 doc to generate new docs. (with separator of course)

So it would be like uuid1::uuid2::uuid3 .

Maximum key size is 250 bytes so you are covered.

Thank you so much. In terms of characters , how many ?

1 bytes = 1 character, so 250 characters

1 Like