My understanding of creating a materialized view WITH NO DATA
was that no records would be loaded until I or a policy I've set refresh the view. However, when using timescaledb and providing this option, I can immediately query against the table and it seems like records are being loaded.
I'm following these docs: https://docs.timescale.com/timescaledb/latest/how-to-guides/continuous-aggregates/create-a-continuous-aggregate/#create-a-continuous-aggregate
By default, views are automatically refreshed. You can adjust this by setting the WITH NO DATA option.
CREATE MATERIALIZED VIEW timescaledb_view
WITH (timescaledb.continuous) AS
/* Query */
WITH NO DATA;
Yet when accessing timescaledb_view
it seems completely refreshed, regardless of what query I've run. Am I misunderstanding how this is suppose to work?