Skip to content

feat: Minimize number of connections used by parallel reader - #126

Merged
parthchandra merged 1 commit into
apache:mainfrom
parthchandra:conn-pool
Feb 28, 2024
Merged

parthchandra merged 1 commit into
apache:mainfrom
parthchandra:conn-pool

Conversation

@parthchandra

Copy link
Copy Markdown
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.

@sunchao sunchao 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.

LGTM

@parthchandra
parthchandra merged commit 0c2eb53 into apache:main Feb 28, 2024
@parthchandra
parthchandra deleted the conn-pool branch January 14, 2026 22:01
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