Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make initializing of buffered streams in MergeIterator concurrent #466

Merged

Conversation

Rachelint
Copy link
Contributor

Which issue does this PR close?

Closes #

Rationale for this change

We will build some BufferedStreams in MergeIterator::init_if_necessary sequentially and while building BufferedStream, it needs to pull a batch to fill the buffer.
Obviously, the initial pullings above can be concurrent.

What changes are included in this PR?

Make initializing of buffered stream in MergeIterator concurrent.

Are there any user-facing changes?

None.

How does this change test

Test by ut.

@Rachelint Rachelint force-pushed the parallel-initializing-in-merge-iterator branch from 450d3cc to 047a2ce Compare December 8, 2022 12:41
@Rachelint Rachelint changed the title feat: make initializing of buffered stream in MergeIterator concurrent feat: make initializing of buffered streams in MergeIterator concurrent Dec 8, 2022
@Rachelint Rachelint force-pushed the parallel-initializing-in-merge-iterator branch from 047a2ce to 52e9a1b Compare December 8, 2022 12:45
Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit 04c160a into apache:main Dec 9, 2022
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
@Rachelint Rachelint deleted the parallel-initializing-in-merge-iterator branch May 27, 2023 12:19
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.

None yet

2 participants