create MATERIALIZED VIEW test_view on A as select * from A where type = 1;
在查询时也是
select * from test_view.
像这样的,和直接查询表A
select * from a where type = 1
有什么区别?
速度会快?
能否详细解释一下
...全文
5308打赏收藏
为什么物化视图会比表查询快?
刚看了下物化视图,有个问题一直想不明白。想问下各位。 创建完物化视图。比如A表的物化视图 create MATERIALIZED VIEW test_view on A as select * from A where type = 1; 在查询时也是 select * from test_view. 像这样的,和直接查询表A select * from a where type = 1 有什么区别? 速度会快? 能否详细解释一下