timescaledb icon indicating copy to clipboard operation
timescaledb copied to clipboard

Detect continuous aggregates and build the nested classes for them

Open jonatas opened this issue 11 months ago • 0 comments

Today, if the continuous_aggregates macro is not declared in the model, it cannot detect previous aggregations or even use them on the fly.

It would be great if we could detect them and build their nested classes.

To disable it:

class MyHypertable < Hypertable
  acts_as_hypertable ..., detect_aggregates: false 
end

By default, when acts_as_hypertable is invoked, it allows fetching the continuous aggregates directly from the hypertable nested classes.

MyHypertable::MyCaggWithDifferentPattern.all

jonatas avatar Jan 15 '25 15:01 jonatas