Skip to content

ESQL: Improve Lookup Join performance with CachedDirectoryReader#137539

Closed
julian-elastic wants to merge 14 commits intoelastic:mainfrom
julian-elastic:CachedDirectoryReader
Closed

ESQL: Improve Lookup Join performance with CachedDirectoryReader#137539
julian-elastic wants to merge 14 commits intoelastic:mainfrom
julian-elastic:CachedDirectoryReader

Conversation

@julian-elastic
Copy link
Contributor

@julian-elastic julian-elastic commented Nov 3, 2025

Improve Lookup Join performance by caching objects needed for Lucene Queries.
We cache DocValues to improve query performance.

Special thanks to @dnhatn for POC and bugfix help for this improvement.

Closes #137268

@elasticsearchmachine elasticsearchmachine added v9.3.0 needs:triage Requires assignment of a team area label labels Nov 3, 2025
@julian-elastic julian-elastic self-assigned this Nov 3, 2025
@elasticsearchmachine elasticsearchmachine added Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) and removed needs:triage Requires assignment of a team area label labels Nov 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @julian-elastic, I've created a changelog YAML for you.

@julian-elastic
Copy link
Contributor Author

Buildkite benchmark this with esql-joins please

@julian-elastic
Copy link
Contributor Author

Buildkite benchmark this with esql-joins please

@dnhatn dnhatn self-requested a review November 20, 2025 00:19
@julian-elastic
Copy link
Contributor Author

Buildkite benchmark this with esql-joins please

@julian-elastic
Copy link
Contributor Author

Buildkite benchmark this with esql-joins please

@dnhatn
Copy link
Member

dnhatn commented Dec 5, 2025

Buildkite benchmark this with esql-joins please

@elasticsearchmachine
Copy link
Collaborator

Hi @julian-elastic, I've updated the changelog YAML for you.

@julian-elastic
Copy link
Contributor Author

Buildkite benchmark this with esql-joins please

@elasticmachine
Copy link
Collaborator

elasticmachine commented Dec 10, 2025

💚 Build Succeeded

This build ran two esql-joins benchmarks to evaluate performance impact of this PR.

History

cc @julian-elastic

@julian-elastic
Copy link
Contributor Author

Caching docValues to be checked in with #139314, caching termsEnum needs more work.

@julian-elastic
Copy link
Contributor Author

closing this as we are splitting into 2 different PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance: Improve Lookup Join performance by caching docValues

4 participants