- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.1k
 
Enhance reduce limit 2 #5728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Enhance reduce limit 2 #5728
Conversation
| iolist_to_binary(io_lib:format(Fmt, [InSize, OutSize])). | ||
| 
               | 
          ||
| reduce_limit_threshold() -> | ||
| config:get_integer("query_server_config", "reduce_limit_threshold", 4906). | 
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
        
          
                share/server/views.js
              
                Outdated
          
        
      | } else { | ||
| throw(["error", "reduce_overflow_error", log_message]); | ||
| }; | ||
| throw(["error", "reduce_overflow_error", log_message]); | 
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
00c4f22    to
    a1a474b      
    Compare
  
    
Overview
Testing recommendations
Related Issues or Pull Requests
Checklist
rel/overlay/etc/default.inisrc/docsfolder