You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/06/04 10:46:19 UTC

[GitHub] alxndrsn commented on a change in pull request #541: Allow configuration of max doc IDs for optimised code path in changes filter

alxndrsn commented on a change in pull request #541: Allow configuration of max doc IDs for optimised code path in changes filter
URL: https://github.com/apache/couchdb/pull/541#discussion_r120006800
 
 

 ##########
 File path: src/couch/src/couch_changes.erl
 ##########
 @@ -556,9 +552,15 @@ send_changes(Acc, Dir, FirstRound) ->
     end.
 
 
-can_optimize(true, {doc_ids, _Style, DocIds})
-        when length(DocIds) =< ?MAX_DOC_IDS ->
-    {true, fun send_changes_doc_ids/6};
+can_optimize(true, {doc_ids, _Style, DocIds}) ->
+    MaxDocIds = list_to_integer(
+        config:get("changes", "max_doc_ids", "100")
 
 Review comment:
   :+1: so, something like: `changes_doc_ids_optimization_threshold` in the `[couchdb]` section?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services