Skip to content

Remove outdated workaround from columnar sort planning - #9809

Merged
akuzm merged 29 commits into
timescale:mainfrom
akuzm:work-remove
Jun 22, 2026
Merged

Remove outdated workaround from columnar sort planning#9809
akuzm merged 29 commits into
timescale:mainfrom
akuzm:work-remove

Conversation

@akuzm

@akuzm akuzm commented May 13, 2026

Copy link
Copy Markdown
Member

We used to have a workaround there that added cost to account for projection needed by Sort node. It proved to be more harmful than useful, so it was removed, but some code was left over. Remove it too.

The main part removed here: #8416

This leads to some 6x speedups on some queries to partially compressed tables: https://grafana.dev-us-east-1.ops.dev.timescale.com/d/fasYic_4z/compare-benchmark-runs?orgId=1&var-run1=5657&var-run2=5658&var-postgres=16&var-branch=All&var-threshold=0.02&var-use_historical_thresholds=true&var-threshold_expression=2.0%20%2A%20percentile_cont%280.90%29&var-exact_suite_version=true

Disable-check: force-changelog-file

We used to have a workaround there that added cost to account for
projection needed by Sort node. It proved to be more harmful than
useful, so it was removed, but some code was left over. Remove it too.
@akuzm
akuzm requested a review from a team May 13, 2026 14:38
@github-actions

Copy link
Copy Markdown

@kpan2034, @natalya-aksman: please review this pull request.

Powered by pull-review

akuzm added 19 commits May 18, 2026 16:42
… ordered_append_join transparent_decompress_chunk
…ordered_append_join transparent_decompress_chunk
…ordered_append_join transparent_decompress_chunk
…onstraint_exclusion_prepared ordered_append_join transparent_decompress_chunk
…constraint_exclusion_prepared ordered_append_join transparent_decompress_chunk
@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@akuzm
akuzm enabled auto-merge (squash) June 22, 2026 08:14
@akuzm
akuzm merged commit aff10b5 into timescale:main Jun 22, 2026
58 of 61 checks passed
@akuzm
akuzm deleted the work-remove branch June 22, 2026 08:32
kpan2034 pushed a commit to kpan2034/timescaledb that referenced this pull request Jul 1, 2026
We used to have a workaround there that added cost to account for
projection needed by Sort node. It proved to be more harmful than
useful, so it was removed, but some code was left over. Remove it too.

The main part removed here:
timescale#8416

This leads to some 6x speedups on some queries to partially compressed
tables.
@timescale-automation timescale-automation added the released-2.29.0 Released in 2.29.0 label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released-2.29.0 Released in 2.29.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants