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

[Docs RFC]Update the hypercore and compression docs to show how to write to a chunk that is being compressed or moved to the columstore #3745

Open
billy-the-fish opened this issue Jan 21, 2025 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@billy-the-fish
Copy link
Contributor

Update https://docs.timescale.com/use-timescale/latest/compression/modify-compressed-data/ and https://docs-dev.timescale.com/docs-262-docs-rfccreate-a-page-automate-hypercore-using-jobs/use-timescale/262-docs-rfccreate-a-page-automate-hypercore-using-jobs/hypercore/modify-data-in-the-columnstore/ and associated API pages to mention the following.

INSERT into the chunk being compressed are blocked, INSERTs into other chunks are not
by default we take exclusive lock at the end of compress_chunk so it might block other reads on that chunk for a short moment
you can get rid of that lock by setting set timescaledb.enable_delete_after_compression to on; which means you need to vacuum more it wont take accessexclusive lock

hese limitations only apply to the chunk being compressed, SELECT and INSERT on other chunks of the hypertable are not affected
3:25
Keep in mind though that SELECT will try access every chunk unless it can do plan time exclusion

At the moment the policy will process only 1 chunk at a time

4:00
But you can manually compress multiple chunks in parallel sessions

@svenklemm does this apply to hypercore as well?

@billy-the-fish billy-the-fish added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 21, 2025
@billy-the-fish billy-the-fish self-assigned this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant