문제

May I know the difference for these two items?

Data in materialized view can be refresh but so as view when we use select statement. Why not just use view instead of materialized view?

도움이 되었습니까?

해결책

When you need performance on data that don't need to be up to date to the very second, materialized views are better, but your data will be older than in a standard view.

While creating Materialized view Oracle creates two objects, a table where the results are actually materialized and a materialized view that has all the metadata (the query, the attributes, etc.).

But while creating View Oracle creates only one object, which has all the metadata(the query, the attributes, etc.)

다른 팁

You use materialized views for performance reasons mainly.

According to the Oracle docs:

A materialized view is a replica of a target master from a single point in time.

A regular view loads data 'on demand' and can 'automatically' change when the underlying data changes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top