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

Save statistics for all columns (Including Non-Indexed Columns) in TimescaleDB #7500

Open
pantonis opened this issue Nov 28, 2024 · 0 comments
Labels
enhancement An enhancement to an existing feature for functionality

Comments

@pantonis
Copy link

What type of enhancement is this?

Performance

What subsystems and features will be improved?

Query executor, Query planner

What does the enhancement do?

It would be highly beneficial if TimescaleDB could save statistics for all columns, not just indexed ones, for compressed tables. This approach would function similarly to how Parquet files store metadata and column-level statistics.
Saving statistics for all columns would optimize the elimination of chunks, making query execution more efficient. It will also provide more comprehensive statistics would allow predicates to work more effectively, especially for filtering and range queries on non-indexed columns

Parquet files leverage column-level statistics to great effect, leading to significant performance gains. Implementing a similar mechanism in TimescaleDB would provide comparable benefits.
This feature would be a great enhancement for workloads that rely on frequent queries with non-indexed predicates, particularly in analytics where we have ad-hoc queries all the time

Implementation challenges

No response

@pantonis pantonis added the enhancement An enhancement to an existing feature for functionality label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to an existing feature for functionality
Projects
None yet
Development

No branches or pull requests

1 participant