You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/07/01 21:01:56 UTC
[GitHub] [couchdb] nickva commented on a change in pull request #3653: Comment out [couchdb]: max_document_size
nickva commented on a change in pull request #3653:
URL: https://github.com/apache/couchdb/pull/3653#discussion_r662589774
##########
File path: test/elixir/test/bulk_docs_test.exs
##########
@@ -133,7 +133,8 @@ defmodule BulkDocsTest do
@tag :with_db
test "bulk docs raises error for transaction larger than 10MB", ctx do
docs = [%{_id: "0", a: random_string(16_000_000)}]
- old_size = Couch.get("/_node/node1@127.0.0.1/_config/couchdb/max_document_size").body
+# old_size = Couch.get("/_node/node1@127.0.0.1/_config/couchdb/max_document_size").body
+ old_size = "8000000"
set_config_raw("couchdb", "max_document_size", "67108864") # 64M
resp = Couch.post("/#{ctx[:db_name]}/_bulk_docs", body: %{docs: docs})
set_config_raw("couchdb", "max_document_size", old_size) # set back
Review comment:
We can skip reading the old size and re-setting it as the default is 8Mb. We could even lower the random_string size a bit too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org