I have a TimescaleDB hypertable that breaks in chunks by every 1-month interval based in my timestamp column.
Does TimescaleDB use the same timestamp column to define when a chunk has to be compressed?
If so, how is the best method to handle the following issue:
I want to populate this table starting from an older time, let's say, 2017.
When I start my software to do these insertions, after it inserts the first row (with a timestamp from 2017) it will compress the table and then fail to do the next insertion in the same chunk.
Is there a way to avoid that? can I momentarily disable compression for all chunks and then reenable it after I'm done?
Or can I someway force the insertion making TimescaleDB do the decompression, insertion, and recompression after that transparently?
Also, can I change the behavior of the compression interval to be based when the line was inserted and not by my timestamp (that way even if I add data from 2017 now, it will only compress it after one month from today)?