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

[YSQL] Improve PopulateParallelSelectOps() to allow partition pruning #13824

Open
andrei-mart opened this issue Aug 31, 2022 · 0 comments
Open
Labels
area/ysql Yugabyte SQL (YSQL) kind/enhancement This is an enhancement of an existing feature priority/low Low priority

Comments

@andrei-mart
Copy link
Contributor

andrei-mart commented Aug 31, 2022

Jira Link: DB-3331

Description

The PgDocReadOp::PopulateParallelSelectOps() method is designed to create multiple copies of the read request and bind them to different partitions, so they can be executed in parallel. However, it creates requests to all partitions, while certain conditions allow to exclude certain partitions. Currently we prefer pruning, so if request has conditions allowing to filter out (prune) partitions, we do not do parallelism, so if request targets multiple partitions, they are scanned sequentially.
We should be able to do both, pruning and parallel requests to the remaining partitions.

@andrei-mart andrei-mart added kind/enhancement This is an enhancement of an existing feature area/ysql Yugabyte SQL (YSQL) priority/low Low priority labels Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/enhancement This is an enhancement of an existing feature priority/low Low priority
Projects
None yet
Development

No branches or pull requests

1 participant