Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

couchdb Max_document_size

We are going to use bigcouch to serve images. The max image size is ~5MB. The config value is at 64MB. Should we change it to somewhere close? What is the reason behind it?

Thanks,

Kathleen

like image 798
user1212766 Avatar asked Sep 14 '26 17:09

user1212766


2 Answers

You should not change it. I'm pretty sure that value is excluding attachments.

The max document size is just for the JSON part of the document (not your image attachments), and it prevents the server from using too much memory to hold an oversized document.

Also, you may ignore @ajreal, he seems to have no idea what he is saying.

like image 134
JasonSmith Avatar answered Sep 17 '26 21:09

JasonSmith


Assuming you stream the attachment in as standalone (i.e, PUT /dbname/docid/attachment_name) you won't hit the max_document_size limit. Jason is correct that it only limits the size of a JSON body PUT. I also second his opinion that ajreal is talking crap.

like image 24
Robert Newson Avatar answered Sep 17 '26 21:09

Robert Newson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!