Differences between revisions 3 and 4
Revision 3 as of 2009-09-20 21:44:47
Size: 641
Editor: localhost
Comment: converted to 1.6 markup
Revision 4 as of 2018-04-12 17:35:05
Size: 0
Editor: JoanTouzet
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
The maximum request size to CouchDB is defined in src/mochiweb/mochiweb_request.erl

% Maximum recv_body() length of 1MB
-define(MAX_RECV_BODY, (1024*1024)).

As this is the maximum request size, the maximum document size is less than 1MB. The maximum document size is not a constant value as the JSON encoding is variable on a per document basis and is best defined as MAX_RECV_BODY - the size of the JSON key and formatting data.

You can edit MAX_RECV_BODY to a higher value.

Note that this will either be a configuration option or there will be no limit to the document size in CouchDB 0.9 (that is currently in development)