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: Minimize number of connections used by parallel reader #126

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

parthchandra
Copy link
Contributor

Which issue does this PR close?

Closes #124

Rationale for this change

The current parallel reader implementation opens and closes too many connections to the file system. This can be reduced by using a fixed number of connections which does not exceed the number of threads used by the parallel reader

What changes are included in this PR?

Creates read ranges and assigns consecutive read range to each thread which then opens only one connection to read the ranges it has been assigned.

How are these changes tested?

TPC-DS benchmark queries on AWS/S3.

Copy link
Member

@sunchao sunchao left a comment

Choose a reason for hiding this comment

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

LGTM

@parthchandra parthchandra merged commit 0c2eb53 into apache:main Feb 28, 2024
10 checks passed
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.

Improve parallel reader to minimize number of connections
3 participants