物化视图只create不作为select对象

junon 2011-12-16 09:42:59
我看物化视图说是一个result of query,如果只创建物化视图而不查询物化视图是不是没什么用的啊?

因为程序已经开发好了,select什么的对象是不能改为物化视图了。
...全文
270 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
junon 2011-12-16
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 jym2002 的回复:]

引用楼主 junon 的回复:
我看物化视图说是一个result of query,如果只创建物化视图而不查询物化视图是不是没什么用的啊?

因为程序已经开发好了,select什么的对象是不能改为物化视图了。

你造了火车,没人坐,你造它干嘛。。。。
[/Quote]

One of the major benefits of creating and maintaining materialized views is the ability to take advantage of query rewrite, which transforms a SQL statement expressed in terms of tables or views into a statement accessing one or more materialized views that are defined on the detail tables. The transformation is transparent to the end user or application, requiring no intervention and no reference to the materialized view in the SQL statement. Because query rewrite is transparent, materialized views can be added or dropped just like indexes without invalidating the SQL in the application code.

query rewrite可自动完成是否使用materialized views
http://docs.oracle.com/cd/B19306_01/server.102/b14223/qrbasic.htm
junon 2011-12-16
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 jym2002 的回复:]

引用楼主 junon 的回复:
我看物化视图说是一个result of query,如果只创建物化视图而不查询物化视图是不是没什么用的啊?

因为程序已经开发好了,select什么的对象是不能改为物化视图了。

你造了火车,没人坐,你造它干嘛。。。。
[/Quote]
优化器会用么
jym2002 2011-12-16
  • 打赏
  • 举报
回复
[Quote=引用楼主 junon 的回复:]
我看物化视图说是一个result of query,如果只创建物化视图而不查询物化视图是不是没什么用的啊?

因为程序已经开发好了,select什么的对象是不能改为物化视图了。
[/Quote]
你造了火车,没人坐,你造它干嘛。。。。
junon 2011-12-16
  • 打赏
  • 举报
回复
优化器能够根据基于master table的物化视图自动优化?

17,090

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧