Skip to content

Commit

Permalink
Update changelog (release highlight) for elastic#89106 (elastic#89649)
Browse files Browse the repository at this point in the history
  • Loading branch information
luigidellaquila authored Aug 26, 2022
1 parent 6849031 commit afefcbc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/changelog/89106.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@ area: SQL
type: enhancement
issues:
- 88764
highlight:
title: Speed up SQL queries by not tracking total hits by default
body: |-
SQL query translator now explicitly sets track_total_hits to false when
not needed.
This has a significant impact on SQL query performance in cases where total hits
are not needed to calculate the final result, in particular when the cost of evaluation
of a single document is particularly high (eg. queries that involve script evaluation)
and in queries with a small LIMIT value.
In our tests, on some specific queries, we see a speed-up of more than 50%,
with peaks of ~95% (from 600ms to 20ms).
notable: true

0 comments on commit afefcbc

Please sign in to comment.