1) First difference between View and materialized view is that, In Views query result is not stored in the disk or database but Materialized view allow to store query result in disk or table.
2) Another difference between View vs materialized view is that, when we create view using any table, rowid of view is same as original table but in case of Materialized view rowid is different.
3) One more difference between View and materialized view in database is that, In case of View we always get latest data but in case of Materialized view we need to refresh the view for getting latest data.
4) Performance of View is less than Materialized view.
5)View vs Materialized View is that, In case of Materialized view we need extra trigger or some automatic method so that we can keep materialized view refreshed, this is not required for views in database.
When do we go for Materialized View?
View is logical view of the table, with no data stored on the disk.It will return the latest data upon queried.
The performance of the view is dependant on how efficiently the query is framed upon.If the query has many joins and joins based on non indexed columns then the performance will be poor.
Materialized views is logical view of data. The queried result set is stored in the form of a table. So the next time the optimizer fetches the result from materialized view rather than querying the tables,this can greatly speed up the response time of end user application.
Hope this articles helps you in understanding the concepts of view & materialized view
2) Another difference between View vs materialized view is that, when we create view using any table, rowid of view is same as original table but in case of Materialized view rowid is different.
3) One more difference between View and materialized view in database is that, In case of View we always get latest data but in case of Materialized view we need to refresh the view for getting latest data.
4) Performance of View is less than Materialized view.
5)View vs Materialized View is that, In case of Materialized view we need extra trigger or some automatic method so that we can keep materialized view refreshed, this is not required for views in database.
When do we go for Materialized View?
View is logical view of the table, with no data stored on the disk.It will return the latest data upon queried.
The performance of the view is dependant on how efficiently the query is framed upon.If the query has many joins and joins based on non indexed columns then the performance will be poor.
Materialized views is logical view of data. The queried result set is stored in the form of a table. So the next time the optimizer fetches the result from materialized view rather than querying the tables,this can greatly speed up the response time of end user application.
Hope this articles helps you in understanding the concepts of view & materialized view
Comments
Post a Comment