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

[Feature]: Specify Tablespace for Compressed Chunks #7553

Open
brianewell opened this issue Dec 20, 2024 · 0 comments
Open

[Feature]: Specify Tablespace for Compressed Chunks #7553

brianewell opened this issue Dec 20, 2024 · 0 comments

Comments

@brianewell
Copy link

What problem does the new feature solve?

TimescaleDB's access patterns for uncompressed and compressed chunks differ due to the inherent differences between row-based and column-based storage. Currently, there is no way to optimize storage strategies independently for these two types of chunks. Allowing compressed and uncompressed chunks to be stored in separate tablespaces would enable users to tailor the underlying storage configurations (e.g., differing ZFS filesystem record sizes) to the specific access patterns of each chunk type. This optimization could significantly enhance overall performance.

What does the feature do?

This feature introduces the ability to specify a distinct tablespace for the compressed chunks of a hypertable. This configuration is independent of the tablespace used for the uncompressed chunks, providing finer-grained control over storage allocation and performance optimization.

Implementation challenges

The proposed implementation involves adding an optional if_compressed parameter to the existing attach_tablespace function. This parameter would flag the association between the hypertable and the tablespace for use exclusively with compressed chunks. Additional research is needed to assess feasibility and edge cases, such as compatibility with existing hypertables, but this proposal serves as a starting point for community feedback before proceeding with a pull request (PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants