Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Use timescale's continuous aggregates for optimizing queries #100

Open
camallen opened this issue Sep 17, 2019 · 0 comments
Open

Use timescale's continuous aggregates for optimizing queries #100

camallen opened this issue Sep 17, 2019 · 0 comments

Comments

@camallen
Copy link
Contributor

It is desirable to avoid recalculating query data each time, timescale offer a pre-computed 'view' through, https://docs.timescale.com/latest/using-timescaledb/continuous-aggregates

Use these continuous aggregate 'views' to precompute expensive time bucket operations for the hypertable (i.e. select time bucket window of data for aggregates over the hypertable).

Note as of timescale 1.4 they do not support filter clauses but they intend to in the future.
https://docs.timescale.com/latest/using-timescaledb/continuous-aggregates#future-work

Also they intend to allow the 'view' to keep the underlying data and drop the raw chunks values to allow the data to be rolled up for long term storage.

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

No branches or pull requests

1 participant