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

Remove stats update from incremental recompression #6763

Merged

Conversation

antekresic
Copy link
Contributor

Compression size stats are formed during initial compression. At that time, we know what the uncompressed stats were before the operation and the compressed stats after. But during incremental recompression, we are not decompressing the whole chunk thus we cannot update those statistics. So far, we only updated compressed stats and the tuple count. This ends up making the compression ratio incorrect since we are not updating all the stats. Removing any updates during incremental recompression will at least keep the initial stats consistent which is better than partially updated stats.

Disable-check: force-changelog-file

@antekresic antekresic self-assigned this Mar 13, 2024
@antekresic antekresic marked this pull request as ready for review March 13, 2024 11:40
Compression size stats are formed during initial compression.
At that time, we know what the uncompressed stats were before
the operation and the compressed stats after. But during incremental
recompression, we are not decompressing the whole chunk thus we
cannot update those statistics. So far, we only updated compressed
stats and the tuple count. This ends up making the compression
ratio incorrect since we are not updating all the stats. Removing
any updates during incremental recompression will at least keep
the initial stats consistent which is better than partially updated
stats.
@antekresic antekresic force-pushed the remove-stats-update-recompression branch from c317ee2 to b3c5f95 Compare March 13, 2024 11:40
@svenklemm
Copy link
Member

LGTM

@antekresic antekresic merged commit 8a40e55 into timescale:main Mar 14, 2024
37 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