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

Disable default indexscan for compression #6639

Merged
merged 1 commit into from Feb 12, 2024

Conversation

nikkhils
Copy link
Contributor

@nikkhils nikkhils commented Feb 12, 2024

The current code would always prefer indexscan over tuplesort while doing scans of the rows from the chunk that was being compressed. The thinking was that we'd avoid doing a sort via the indexscan. The theory looked good on paper, but from various cloud customer reports we have seen that the random access of the heap pages via the indexscan was typically more expensive than doing the tuplesort. So we disable the default indexscan till we get better usecases warranting enabling it again for all scenarios. Specific use cases can enable the timescaledb.enable_compression_indexscan manually if desired.

Disable-check: force-changelog-file

The current code would always prefer indexscan over tuplesort while
doing scans of the rows from the chunk that was being compressed.
The thinking was that we'd avoid doing a sort via the indexscan.
The theory looked good on paper, but from various cloud customer
reports we have seen that the random access of the heap pages via the
indexscan was typically more expensive than doing the tuplesort. So we
disable the default indexscan till we get better usecases warranting
enabling it again for all scenarios. Specific use cases can enable the
timescaledb.enable_compression_indexscan manually if desired.
@nikkhils nikkhils added this to the TimescaleDB 2.14.1 milestone Feb 12, 2024
@nikkhils nikkhils self-assigned this Feb 12, 2024
Copy link

codecov bot commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2265c18) 79.99% compared to head (29c336d) 79.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6639      +/-   ##
==========================================
- Coverage   79.99%   79.99%   -0.01%     
==========================================
  Files         190      190              
  Lines       37217    37171      -46     
  Branches     9457     9440      -17     
==========================================
- Hits        29773    29736      -37     
- Misses       3032     3036       +4     
+ Partials     4412     4399      -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nikkhils nikkhils merged commit 4f912f7 into timescale:main Feb 12, 2024
52 of 54 checks passed
@nikkhils nikkhils deleted the dis_idxscn branch February 12, 2024 16:39
@pallavisontakke pallavisontakke added bug force-auto-backport Automatically backport this PR or fix of this issue, even if it's not marked as "bug" labels Feb 14, 2024
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Feb 14, 2024
This release contains bug fixes since the 2.14.0 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* timescale#6630 Add views for per chunk compression settings

**Bugfixes**
* timescale#6636 Fixes extension update of compressed hypertables with dropped columns
* timescale#6637 Reset sequence numbers on non-rollup compression
* timescale#6639 Disable default indexscan for compression
* timescale#6651 Fix DecompressChunk path generation with per chunk settings

**Thanks**
* @anajavi for reporting an issue with extension update of compressed hypertables
svenklemm added a commit that referenced this pull request Feb 14, 2024
This release contains bug fixes since the 2.14.0 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* #6630 Add views for per chunk compression settings

**Bugfixes**
* #6636 Fixes extension update of compressed hypertables with dropped columns
* #6637 Reset sequence numbers on non-rollup compression
* #6639 Disable default indexscan for compression
* #6651 Fix DecompressChunk path generation with per chunk settings

**Thanks**
* @anajavi for reporting an issue with extension update of compressed hypertables
svenklemm added a commit that referenced this pull request Feb 14, 2024
This release contains bug fixes since the 2.14.0 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* #6630 Add views for per chunk compression settings

**Bugfixes**
* #6636 Fixes extension update of compressed hypertables with dropped columns
* #6637 Reset sequence numbers on non-rollup compression
* #6639 Disable default indexscan for compression
* #6651 Fix DecompressChunk path generation with per chunk settings

**Thanks**
* @anajavi for reporting an issue with extension update of compressed hypertables
svenklemm added a commit that referenced this pull request Feb 14, 2024
This release contains bug fixes since the 2.14.0 release.
We recommend that you upgrade at the next available opportunity.

**Features**
* #6630 Add views for per chunk compression settings

**Bugfixes**
* #6636 Fixes extension update of compressed hypertables with dropped columns
* #6637 Reset sequence numbers on non-rollup compression
* #6639 Disable default indexscan for compression
* #6651 Fix DecompressChunk path generation with per chunk settings

**Thanks**
* @anajavi for reporting an issue with extension update of compressed hypertables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported-2.14.x bug force-auto-backport Automatically backport this PR or fix of this issue, even if it's not marked as "bug"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants