View & Materialized View

Comparison Chart

BASIS FOR COMPARISONVIEWMATERIALIZED VIEW
BasicA View is never stored it is only displayed.A Materialized View is stored on the disk.
DefineView is the virtual table formed from one or more base tables or views.Materialized view is a physical copy of the base table.
UpdateView is updated each time the virtual table (View) is used.Materialized View has to be updated manually or using triggers.
SpeedSlow processing.Fast processing.
Memory usageView do not require memory space.Materialized View utilizes memory space.
SyntaxCreate View V AsCreate Materialized View V Build [clause] Refresh [clause] On [Trigger] As

Comments

Popular posts from this blog

Spring Boot + Maven + RestFul + JPA + Sqlite

JDBC with Sqlite