davisp commented on a change in pull request #1804: Make view query limits
configurable
URL: https://github.com/apache/couchdb/pull/1804#discussion_r240323250
##########
File path: src/couch_mrview/src/couch_mrview_util.erl
##########
@@ -525,6 +527,39 @@ validate_args(#mrst{} = State, Args0) ->
end.
+apply_limit(ViewPartitioned, Args) ->
+ MaxLimitType = case ViewPartitioned of
+ true -> "partition_";
+ false -> ""
+ end,
+
+ MaxLimit = case config:get("query_server_config",
Review comment:
Using `config:get_integer("query_server_config", MaxLimit, ?MAX_VIEW_LIMIT)`
would clean up the logic and avoid having to do the whole infinity dance.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services