elasticsearch
elasticsearch copied to clipboard
SQL: Set track_total_hits to false when not needed
track_total_hits has some performance cost, that in many cases can be avoided.
This PR sets track_total_hits=false in all cases where the execution plan did not explicitly declare that track_total_hits is needed.
Fixes #88764
Hi @luigidellaquila, I've created a changelog YAML for you.
Pinging @elastic/es-ql (Team:QL)
@elasticmachine update branch
@luigidellaquila according to this PR's labels, I need to update the changelog YAML, but I can't because the PR is closed. Please either update the changelog yourself on the appropriate branch, or adjust the labels. Specifically:
- The PR is labelled
release highlightbut the changelog has nohighlightsection
I added the release highlight label based on the speedup we observed in nightly benchmarks with this change: https://elasticsearch-benchmarks.elastic.co/index.html#tracks/sql/nightly/default/30d