How can you determine the last refresh time of a materialized view?

Master the SnowPro Advanced Architect Test with flashcards, multiple-choice questions, and detailed explanations. Prepare thoroughly for your certification!

Multiple Choice

How can you determine the last refresh time of a materialized view?

Explanation:
The last refresh time is provided directly in the SHOW MATERIALIZED VIEWS output. Look at the REFRESHED_ON timestamp—the value there is the exact time the materialized view was last refreshed. The BEHIND_BY column is also useful because it shows how far behind the latest data the view is, giving you a sense of currentness. This approach is preferred because CREATED_ON only tells when the object was created, not when it was last refreshed. Querying INFORMATION_SCHEMA.MATERIALIZED_VIEWS or DESCRIBE MATERIALIZED_VIEW typically won’t yield the last refresh timestamp or the current staleness, so they don’t directly answer when the view was last refreshed.

The last refresh time is provided directly in the SHOW MATERIALIZED VIEWS output. Look at the REFRESHED_ON timestamp—the value there is the exact time the materialized view was last refreshed. The BEHIND_BY column is also useful because it shows how far behind the latest data the view is, giving you a sense of currentness.

This approach is preferred because CREATED_ON only tells when the object was created, not when it was last refreshed. Querying INFORMATION_SCHEMA.MATERIALIZED_VIEWS or DESCRIBE MATERIALIZED_VIEW typically won’t yield the last refresh timestamp or the current staleness, so they don’t directly answer when the view was last refreshed.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy