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

Backport to 2.18.x: #7653: Push down orderby scankeys to Hypercore TAM #7670

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

timescale-automation
Copy link
Member

This is an automated backport of #7653: Push down orderby scankeys to Hypercore TAM.
The original issue is #7652.
This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Push down orderby scankeys to Hypercore TAM

Quals on orderby columns can be pushed down to Hypercore TAM and be transformed to the corresponding min/max scankeys on the compressed relation. Previously, only quals on non-compressed segmentby columns were pushed down as scankeys.

Pushing down orderby scan keys seem to give a good performance boost for columnar scans when no index exists.

The scankey push down can be disabled with a new GUC:

timescaledb.enable_hypercore_scankey_pushdown=false

Closes: #7652

Disable-check: approval-count

Quals on orderby columns can be pushed down to Hypercore TAM and be
transformed to the corresponding min/max scankeys on the compressed
relation. Previously, only quals on non-compressed segmentby columns
were pushed down as scankeys.

Pushing down orderby scan keys seem to give a good performance boost
for columnar scans when no index exists.

The scankey push down can be disabled with a new GUC:

`timescaledb.enable_hypercore_scankey_pushdown=false`

(cherry picked from commit d0c2bb7)
@timescale-automation timescale-automation added the is-auto-backport PR created by backport automation label Feb 7, 2025
@timescale-automation timescale-automation enabled auto-merge (rebase) February 7, 2025 15:48
@timescale-automation timescale-automation merged commit 81eb428 into 2.18.x Feb 7, 2025
43 checks passed
@timescale-automation timescale-automation deleted the backport/2.18.x/7653 branch February 7, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-auto-backport PR created by backport automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants