Skip to main content

Module continuous_materialized_view

Module continuous_materialized_view 

Source
Expand description

Continuous (materialized) view descriptor + catalog persistence (issue #593, slice 9a of #575).

Today the view registry on RuntimeInner is purely in-memory: every CREATE [MATERIALIZED] VIEW lands in inner.views: RwLock<HashMap<String, Arc<CreateViewQuery>>> and a restart loses every definition. This module introduces the descriptor type and the persistence layer that backs the registry onto the system collection CATALOG_COLLECTION. Read / write / refresh code paths are unchanged — the rehydrate hook at boot repopulates the in-memory registry from the persisted rows before the API opens.

Structs§

MaterializedViewDescriptor
Persisted shape of a single CREATE MATERIALIZED VIEW.

Constants§

CATALOG_COLLECTION
Name of the system collection that stores one row per materialized-view definition. Bootstrapped alongside the other keyed system collections (red.config, red.vault) at boot.