You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2020/05/27 17:13:13 UTC
[couchdb] branch prototype/fdb-layer updated: Lower the default
batch size for update_docs to 2.5MB
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch prototype/fdb-layer
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/prototype/fdb-layer by this push:
new 19c040f Lower the default batch size for update_docs to 2.5MB
19c040f is described below
commit 19c040f65120898a3cfb54b643e2e49bdd192d02
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Wed May 27 13:01:34 2020 -0400
Lower the default batch size for update_docs to 2.5MB
Observed a number of timeouts with the previous default
---
rel/overlay/etc/default.ini | 2 +-
src/fabric/src/fabric2_db.erl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/rel/overlay/etc/default.ini b/rel/overlay/etc/default.ini
index 35e5147..3630259 100644
--- a/rel/overlay/etc/default.ini
+++ b/rel/overlay/etc/default.ini
@@ -244,7 +244,7 @@ port = 6984
;binary_chunk_size = 100000
;
; Bulk docs transaction batch size in bytes
-;update_docs_batch_size = 5000000
+;update_docs_batch_size = 2500000
; [rexi]
; buffer_count = 2000
diff --git a/src/fabric/src/fabric2_db.erl b/src/fabric/src/fabric2_db.erl
index 6540e0b..667cf35 100644
--- a/src/fabric/src/fabric2_db.erl
+++ b/src/fabric/src/fabric2_db.erl
@@ -156,7 +156,7 @@
-define(RETURN(Term), throw({?MODULE, Term})).
--define(DEFAULT_UPDATE_DOCS_BATCH_SIZE, 5000000).
+-define(DEFAULT_UPDATE_DOCS_BATCH_SIZE, 2500000).
-record(bacc, {