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

Properly detect key columns for unique expression indexes #6456

Merged
merged 1 commit into from
Dec 22, 2023

Conversation

svenklemm
Copy link
Member

@svenklemm svenklemm commented Dec 21, 2023

Previously for insert on hypertables with unique expression indexes we used to decompress full chunk as we would do no batch filtering in the dml compression. This patch adds batch filtering for columns that are part of an unique expression index but not filtered by an expression.

Disable-check: force-changelog-file

Copy link

@antekresic, @fabriziomello: please review this pull request.

Powered by pull-review

@svenklemm svenklemm added this to the TimescaleDB 2.13.1 milestone Dec 21, 2023
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (7409002) 87.30% compared to head (6b43bec) 87.31%.
Report is 2 commits behind head on main.

Files Patch % Lines
tsl/src/compression/compression.c 80.00% 2 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6456      +/-   ##
==========================================
+ Coverage   87.30%   87.31%   +0.01%     
==========================================
  Files         187      187              
  Lines       41852    41824      -28     
  Branches     9316     9300      -16     
==========================================
- Hits        36538    36520      -18     
+ Misses       3641     3625      -16     
- Partials     1673     1679       +6     

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

@svenklemm svenklemm requested a review from akuzm December 21, 2023 15:14
Previously for insert on hypertables with unique expression indexes
we used to decompress full chunk as we would do no batch filtering
in the dml compression. This patch adds batch filtering for columns
that are part of an unique expression index but not filtered by an
expression.
@svenklemm svenklemm merged commit 781cbe3 into timescale:main Dec 22, 2023
42 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants