External materialized views cache their data in an external database system. External materialized views give the administrator full control over the loading and refresh strategies. |
Since the actual physical cache for materialized views is maintained external to the Teiid system, there is no predefined policy for clearing and managing the cache. These policies will should be defined and enforced by administrators of the Teiid system based on their needs. |
*Typical Usage Steps* |
... |
External materialized views cache their data in an external database system. External materialized views give the administrator full control over the loading and refresh strategies.
Since the actual physical cache for materialized views is maintained external to the Teiid system, there is no predefined policy for clearing and managing the cache. These policies should be defined and enforced by administrators of the Teiid system based on their needs.
Typical Usage Steps
insert into target\_table select * from matview option nocache
That however may be too simplistic because your index creation may be more performant if deferred until after the table has been created. Also full snapshot refreshes are best done to a staging table then swapping it for the existing physical table to ensure that the refresh does not impact user queries and to ensure that the table is valid prior to use.