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

Check that compress_chunk_interval is used correctly #21

Open
mkindahl opened this issue Sep 12, 2023 · 1 comment
Open

Check that compress_chunk_interval is used correctly #21

mkindahl opened this issue Sep 12, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mkindahl
Copy link
Collaborator

mkindahl commented Sep 12, 2023

If timescaledb.compress_chunk_interval is used the time column should be first in the timescaledb.compress_orderby list for the compression settings and also be marked as ascending.

@mkindahl mkindahl added enhancement New feature or request good first issue Good for newcomers labels Sep 12, 2023
@antekresic
Copy link

The technical reason is that we merge the chunks over time dimension so having compressed data not ordered over the time dimension primarily will create unordered compressed data.

The reason why we need ASC ordering is because we merge chunks in ascending order i.e. newer chunks get merged into older ones.

Both cases create unordered compressed chunks which need to be recompressed fully which is the cause of the performance hit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants