Timescaledb: Downsampling/decaying howto?

Created on 6 Sep 2018  路  2Comments  路  Source: timescale/timescaledb

Is there a simple way to do drop_chunks but instead of throwing away data it's munged through some sort of downsampler (e.g. 1s intervals to 10s) and is it possible to cascade it (1s to 10s to 100s to ...)?

question

All 2 comments

Hi @nwmcsween the common approach folks do is use a scheduled UPSERT to aggregate data from one hypertable to a second. https://docs.timescale.com/v1.0/using-timescaledb/writing-data#upsert

With our new support for background tasks, we'll be adding it policy-drive aggregations in the future. For now, you can easily schedule them external to the database similar to with drop_chunks: https://docs.timescale.com/v1.0/using-timescaledb/data-retention

The nice approach using an UPSERT is they you can more easily handle late data. i.e., every 5second, do a pass over the last 10 seconds to make sure you recompute any of the secondly data that arrived late.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tkurki picture tkurki  路  3Comments

zeeshanshabbir93 picture zeeshanshabbir93  路  3Comments

vfvgc picture vfvgc  路  4Comments

arifainchtein picture arifainchtein  路  4Comments

ancoron picture ancoron  路  4Comments