简体   繁体   中英

How can I tell if a materialized view refresh will be full refresh or incremental refresh?

According to the Redshift docs on materialized view refreshes , there are many rules specified for the kinds of query logic that disallow incremental refreshes of materialized views. However, while working with a materialized view, I can find no way to empirically confirm whether or not a potential refresh will be full or incremental using something like explain . Is there any way to test for refresh types on MVs within Redshift?

Solved. The console output following MV creation will specify if an incrementally maintained MV could not be created, including the reason why.

The state column in the STV_MV_INFO table will tell you if an existing mv can be incrementally updated or has to be recomputed in full.

Source: https://docs.aws.amazon.com/redshift/latest/dg/r_STV_MV_INFO.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM