Changing Couchbase document size limit

Hi Team,

Currently, couchbase has document size limit to 20MB.
We would like to change to smaller value. How do i change document size limit in couchbase


Hi Arihant,
Please check another thread on same topic: How can i change the max document size?

@prathibha Thanks prathibha for reply. I could see max_document_size in /opt/couchbase/etc/couchdb/local.ini file. Changing this value helps?
;max_document_size = 4294967296 ; bytes

@Arihant ; The setting max_document_size in coucdb/local.ini is a different setting pertaining view indexes and not related to document size limit for the document you insert in bucket. The document size limit is 20MB and the limit cannot be changed as of today.
I see that you want to lower the size limit - is it because you do not want the large sized documents to be rejected at the time of insert/update?
If your requirement is to be able to lower the max size, I suggest you to log a bug / feature request at