GET_PROJECTION_STATUS
GET_PROJECTION_STATUS returns information relevant to the status of a
projection:
A projection is a special case of a
materialized view that provides physical storage for data. A projection can contain some or all of the columns of one or more tables. A projection that contains all of the columns of a table is called a
superprojection. A projection that joins one or more tables is called a pre-join projection. Most projections are used for ad-hoc query processing and K-safety but it is possible to have query-specific projections.
A superprojection is a projection that contains every column of a table in the Logical Schema. A table can have multiple superprojections with different sort orders.
A materialized view is similar to a standard SQL view with one major exception: the data is actually stored on disk rather than computed each time the view is used in a query. A materialized view, then, must be refreshed whenever the data in the underlying tables is changed. A projection is a special case of a materialized view.
Syntax
GET_PROJECTION_STATUS('projection');
Semantics
projection
|
is the name of the projection for which to display status
|
Notes
- You can use GET_PROJECTION_STATUS to monitor the progress of a projection data
refresh (see ALTER PROJECTION).A refresh operation ensures that all projections on a node are up-to-date (can participate in query execution). This process may take a long time, depending on how much data is in the table(s).
Examples
=> SELECT GET_PROJECTION_STATUS('t1_sp2');
get_projection_status
-----------------------------------------------------------------------------------------------
Current system K is 0.
# of Nodes: 1.
t1_sp2 [Segmented: No] [# of Buddies: 0] [No buddy projections] [Safe: Yes] [UptoDate: No]