How long can the string be for the value in the key value pair when doing upsert or insert?

If I had to use a key value pair, key refers to the document name and value is the key value for the values being inserted, how long can the string be for the value? Is there a limit that we should be aware of when using for Couchbase C SDK.

Here is an example:

const char *key = "my-document";
const char *value = "{\"value\": \"value2\"}";

Hi @couchbasec ,

The value size limit is 20 MB.

https://docs.couchbase.com/server/current/learn/clusters-and-availability/size-limitations.html

Thanks,
David