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 2022/09/13 23:32:17 UTC

[GitHub] [couchdb] jaydoane commented on a diff in pull request #4163: Statistically skip _revs_diff in the replicator

jaydoane commented on code in PR #4163:
URL: https://github.com/apache/couchdb/pull/4163#discussion_r968829859


##########
src/couch_replicator/src/couch_replicator_worker.erl:
##########
@@ -31,6 +31,9 @@
 -define(BULK_GET_RATIO_THRESHOLD, 0.5).
 -define(BULK_GET_RATIO_DECAY, 0.25).
 -define(BULK_GET_RETRY_SEC, 37).
+-define(REVS_DIFF_RATIO_THRESHOLD, 0.95).
+-define(REVS_DIFF_RATIO_DECAY, 0.4).
+-define(REVS_DIFF_RETRY_SEC, 37).

Review Comment:
   I wonder if it would be helpful to add some comments (and/or a link) here describing why these specific numbers, and how changing them might affect a replication job? Otherwise, they seem a little magical and opaque.



-- 
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