Materialized View Refresh Strategies and Incremental Maintenance
Explore the mechanics of materialized views, focusing on the differences between full and incremental refreshes, concurrent updates, and the impact of the 'WITH DATA' vs 'WITH NO DATA' clauses in SQL databases.
Sample Questions
What is the primary difference between a standard View and a Materialized View?
- A View stores only the definition while a Materialized View stores both the definition and the data physically.
- A Materialized View is always updated in real-time whereas a View is not.
- A View can only be used in SELECT statements while a Materialized View supports DML directly.
- There is no difference between them in modern RDBMS.
Which refresh strategy updates the Materialized View as part of the same transaction that modifies the base table?
- Refresh on Demand
- Refresh on Commit
- Periodic Refresh
- Asynchronous Refresh
What is another term commonly used for 'Incremental Refresh' in Oracle databases?
- Full Refresh
- Complete Refresh
- Fast Refresh
- Snapshot Refresh