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

stats,opt: performance improvements for histograms #39178

Merged
merged 2 commits into from
Aug 1, 2019

Commits on Aug 1, 2019

  1. stats,opt: move histogram bucket distinct count estimation code

    This commit moves the code to estimate the number of distinct values
    per histogram bucket out of the optimizer and into the stats package.
    The purpose of doing this is to remove the overhead of calculating the
    number of distinct values per bucket from the critical path of query
    planning, and instead perform the calculation offline when initially
    generating the histogram.
    
    Release note: None
    rytaft committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    91f48bd View commit details
    Browse the repository at this point in the history
  2. opt: performance improvements for histograms

    This commit improves the performance of histograms in the optimizer
    by avoiding allocating and copying the full histogram unless strictly
    necessary. Additionally, it changes the code for filtering histograms
    to use binary search instead of performing a linear scan.
    
    Release note: None
    rytaft committed Aug 1, 2019
    Configuration menu
    Copy the full SHA
    3243046 View commit details
    Browse the repository at this point in the history