Size Limits

The following limits are imposed by Couchbase Server.

The maximum length of the document ID (key).

The maximum size of the document, typically in JSON format.

Max UI-editable document size

The maximum supported size of a document that can be edited by means of the Couchbase Web Console UI. String-values whose size is greater than 486 KB are not displayed.

Max buckets per cluster

The maximum number of buckets in a cluster.

Max view key size

The maximum size of the key (first attribute) in the emit() function.

Max doc size for indexing

The maximum size of a document that can be indexed. The default value is set to 20 MB to ensure that all documents get indexed.

In Couchbase Server version 2.x and earlier, the view engine enforced a limit of 1MB on documents that can be indexed. As a result, when the size of a document exceeded the limit, the view engine (in version 2.x) did not index that document.

Max key-value size per document

The maximum byte size allowed to be emitted for a single document and per view. This value is the sum of the sizes of all emitted keys and values.

If a document emits a key-value pair that exceeds the specified maximum key-value size per document, an error is logged and that document is not indexed.

Max concurrent key-value connections

Each Couchbase Data node allows, by default, up to 60,000 concurrent key-value connections in total to the two client ports — 11207 (SSL) and 11210 (plain)-- over either one or both ports. [1]

The maximum duration (in milliseconds) to execute all the MapReduce functions in a design document against a single document (map function) or against a list of map values or reductions (reduce or rereduce function). If the execution time for a document exceeds the specified value, the execution is aborted and that document is not indexed.

Sub-document path length

The maximum length of a sub-document path that may be used in a sub-document operation.

Sub-document path nesting level

The maximum number of levels a path may reference in a sub-document operation.

Maximum memcached and system-user connections

The maximum permitted numbers of connections permitted for memcached connections, and for system-user connections, for the cluster. These numbers are established by means of the REST API: see Managing Cluster Connections, for information.

Values outside this range are handled as 64-bit floating-point values, and are subject to approximation inherent in the IEEE floating-point format.

1. Note that in practice a small number of the connections will be used by Couchbase for interprocess communications.