couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Couchdb Wiki] Update of "MaxDocumentSize" by GavinRoy
Date Tue, 15 Jul 2008 02:02:35 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The following page has been changed by GavinRoy:

The comment on the change is:
I ran into a limitation in saving documents with a 9k attachment.

New page:
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.

View raw message