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

Optimise rejection of out-of-range long values #40325

Commits on Mar 21, 2019

  1. Optimise rejection of out-of-range long values

    Today if you try and insert a very large number like `1e9999999` into a long
    field we first construct this number as a `BigDecimal`, convert this to a
    `BigInteger` and then reject it because it is out of range. Unfortunately
    making such a large `BigInteger` is rather expensive.
    
    We can avoid this expense by performing a (weaker) range check on the
    `BigDecimal` representation of incoming `long`s too.
    
    Relates elastic#26137
    Closes elastic#40323
    DaveCTurner committed Mar 21, 2019
    Configuration menu
    Copy the full SHA
    8962789 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2019

  1. Configuration menu
    Copy the full SHA
    6d33457 View commit details
    Browse the repository at this point in the history