This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch decrease-update-docs-batch-size
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 42dd39b1cf9a865bbffc3707c0e6983297cce160
Author: Nick Vatamaniuc <vatam...@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, {

Reply via email to