-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bulk loading enrich fields in ESQL (#106796)
Today, the enrich lookup processes input terms one by one: querying one term, then loading enrich fields for matching documents of that term immediately. However, this approach can add significant overhead, such as the driver run loop, creating/releasing many pages, and especially excessive number of I/O seeks during loading _source, fields. This PR accumulates matching documents up to 256 before loading enrich fields. The 256 limit is chosen to avoid a significant sorting cost and long waits for cancellation.
- Loading branch information
Showing
4 changed files
with
116 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 106796 | ||
summary: Bulk loading enrich fields in ESQL | ||
area: ES|QL | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters