Skip to content

SegmentSearcher stream results - #5521

Merged
agourlay merged 1 commit into
devfrom
segments-searcher-stream-results
Nov 26, 2024
Merged

agourlay merged 1 commit into
devfrom
segments-searcher-stream-results

Conversation

@agourlay

@agourlay agourlay commented Nov 26, 2024 •

Copy link
Copy Markdown
Member

Similar to #5505 but for segments during search.

Process the results from segments out of order as soon as possible.

Tested against CI benchmarks does not show any visible improvements.
I assume it shines with a large number of segments which are not balanced.

@agourlay
agourlay marked this pull request as ready for review November 26, 2024 15:27
@agourlay
agourlay requested a review from timvisee November 26, 2024 15:59

@timvisee timvisee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the expected benefit here?

Just that we digest the search results right away, instead of keeping all response states until the end?

@agourlay

agourlay commented Nov 26, 2024 •

Copy link
Copy Markdown
Member Author

Just that we digest the search results right away, instead of keeping all response states until the end?

Yes and we do not allocate the outer vector result from

let search_results_per_segment_res = searches.await?;

The change is a nice to have, ready to close the PR if you are not convinced :)

@timvisee

timvisee commented Nov 26, 2024 •

Copy link
Copy Markdown
Member

Totally fine with the change. I only wanted to confirm our expectations match.

✅

@agourlay
agourlay merged commit 8cdb44c into dev Nov 26, 2024
@agourlay
agourlay deleted the segments-searcher-stream-results branch November 26, 2024 16:50
timvisee pushed a commit that referenced this pull request Dec 9, 2024
@timvisee timvisee mentioned this pull request Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants