gpt4 book ai didi

sql - 物化 View ——我们为什么需要它?

转载 作者:行者123 更新时间:2023-11-29 14:19:37 27 4
gpt4 key购买 nike

<分区>

我看了这篇文章... http://hashrocket.com/blog/posts/materialized-view-strategies-using-postgresql

作者说:

A materialized view is a snapshot of a query saved into a table.

如果是这样,为什么我们需要物化 View ?它与从查询插入表有何不同:

insert into items_ver(item_id, item_group, name)
select * from items where item_id=2;

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com