沙发底座太大,无法存放

couchbase can't store because too big

我们正在使用 python 将文档存储到 couchbase。

我们从 couchbase 收到此错误消息。

_TooBigError_0x4 (generated, catch TooBigError): <Key=u'1426714751', RC=0x4[The object requested is too big to store in the server], Operational Error, Results=1, C Source=(src\multiresult.c,309)>

如何更改最大尺寸?

我正在使用 couchbase python SDK 版本 2.0

Couchbase 中 Couchbase 存储桶的最大文档大小为 20MB,Memcached 存储桶为 1MB。无法更改它,因此如果您达到此限制,则需要更改数据建模以将文档拆分为更小的对象。