SQL Server Indexed Views vs Oracle Materialized View

自作多情 提交于 2020-01-02 07:29:16

问题


I know materialized view and I'm using it. I have never used indexed views but I will. What are the differences between them ?


回答1:


SQL Server’s indexed views are always kept up to date. In SQL Server, if a view’s base tables are modified, then the view’s indexes are also kept up to date in the same atomic transaction.

Oracle provides something similar called a materialized view. If Oracle’s materialized views are created without the **REFRESH FAST ON COMMIT** option, then the materialized view is not modified when its base tables are. So that’s one major difference. While SQL Server’s indexed views are always kept current, Oracle’s materialized views can be static.



来源:https://stackoverflow.com/questions/31220979/sql-server-indexed-views-vs-oracle-materialized-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!