Couchbase 2.2.0文档大小编辑限制 [英] Couchbase 2.2.0 document size editing limit

查看:56
本文介绍了Couchbase 2.2.0文档大小编辑限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过沙发床控制台编辑文档,并捕获了以下警告消息:

I tried to edit document via couchbase console, and caught this warning message:


警告:编辑尺寸大于2.5的文档

如何增加最大编辑文档大小?

How can I increase max editing document size?

推荐答案

您可以提高限制或完全禁用2.2版:

You can raise the limit or disable completely on version 2.2:

提高限制

编辑文件: /opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/js/documents.js

在第214行:

var DocumentsSection = {

  docsLimit: 1000,

  docBytesLimit: 2500,

init: function () {

var self = this;

docBytesLimit 变量设置为 2500 并将其增加到您的首选值。

Edit the docBytesLimit variable set to 2500 and increase it to your preferred value.

要完全禁用;

您可以注释掉条件语句并返回错误的值。
在362行注释掉该语句并返回false:

You can comment out the conditional statement and return a false value. At line 362 comment out the statement and return false:

function isJsonOverLimited(json) {
  //return getStringBytes(json) > self.docBytesLimit;
  return false;
}

希望这会有所帮助。关于您的WYSYWIG编辑器可以执行多少操作有限制处理。因此,请务必小心,并且一如既往地编辑核心文件可能会导致负面结果。我们是在系统上完成的,并且对我们有用。

Hope this helps.. There are limitations as to how much your WYSYWIG editor can handle. So please be careful and as always editing core files can have negative results. We did it on our system and it works for us.

这篇关于Couchbase 2.2.0文档大小编辑限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆