Skip to content
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

sql: Add more efficient implementation of min, max, sum, avg aggregates when used as window functions. #26988

Merged
merged 1 commit into from
Jul 16, 2018

Commits on Jul 16, 2018

  1. sql: Add efficient min, max, sum, avg when used as window functions

    Adds linear-time implementations of min, max, sum, and avg
    (using sliding window approach) instead of naive quadratic
    version.
    
    Addresses: cockroachdb#26464.
    
    Bonus: min and max are an order of magnitude faster than PG
    (when window frame doesn't include the whole partition).
    
    Release note (performance improvement): min, max, sum, avg
    now take linear time when used for aggregation as window
    functions for all supported window frame options.
    yuzefovich committed Jul 16, 2018
    Configuration menu
    Copy the full SHA
    63e6c0a View commit details
    Browse the repository at this point in the history