timescale / doctor

Rule-based recommendations about your timeseries database.
Apache License 2.0
4 stars 3 forks source link

Recommend suitable segmentby and orderby columns for compression #38

Open mkindahl opened 11 months ago

mkindahl commented 11 months ago

Background

With an existing hypertable, it is very easy to turn on compression and start compressing the data. Compression can be tailored using timescaledb.compress_segmentby and timescaledb.compress_orderby and will improve performance if used the right way.

Problem

Turning on compression for a hypertable can have unexpected effects in query performance and compression depending on what segmentby and orderby columns are selected.

Question

Can we create recommendations based on the schema and the statistics for the table that we want to enable compression for?