Skip to content

Conversation

@rnewson
Copy link
Member

@rnewson rnewson commented Oct 31, 2025

Overview

Testing recommendations

Related Issues or Pull Requests

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • Documentation changes were made in the src/docs folder
  • Documentation changes were backported (separated PR) to affected branches

iolist_to_binary(io_lib:format(Fmt, [InSize, OutSize])).

reduce_limit_threshold() ->
config:get_integer("query_server_config", "reduce_limit_threshold", 4906).
Copy link
Contributor

@nickva nickva Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reducing it back to the built-in intended value of 4096 could break some views if they were right on the edge, maybe just make both 5000 (4096 plus some overhead)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I consolidated the setting into one (passing reduce_limit_threshold to the view server config) and chose the most generous of the two (accidentally) in play.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just meant that 4906 is a whacky value, might as well round it up to 5000. It was supposed to be a 4096

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

} else {
throw(["error", "reduce_overflow_error", log_message]);
};
throw(["error", "reduce_overflow_error", log_message]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If users used log and node-local views this will ignore the log and break their view and start enforcing the reduce limit. Not sure the chance of those things happening: both 1) using local dbs and views and 2) setting it to log but it's worth pointing it out at least

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

@rnewson rnewson force-pushed the enhance_reduce_limit-2 branch from 00c4f22 to a1a474b Compare November 3, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants