Schema:

ACCOUNT_USAGE

MATERIALIZED_VIEW_REFRESH_HISTORY view

This Account Usage view can be used to query the materialized views refresh history. The information returned by the view includes the view name and credits consumed each time a materialized view is refreshed.

Columns

Column NameData TypeDescription
START_TIMETIMESTAMP_LTZStart of the specified time range.
END_TIMETIMESTAMP_LTZEnd of the specified time range.
CREDITS_USEDVARCHARNumber of credits billed for materialized view maintenance during the START_TIME and END_TIME window.
TABLE_IDNUMBERInternal/system-generated identifier for the materialized view.
TABLE_NAMEVARCHARName of the materialized view.
SCHEMA_IDNUMBERInternal/system-generated identifier for the schema that contains the materialized view.
SCHEMA_NAMEVARCHARName of the schema that contains the materialized view.
DATABASE_IDNUMBERInternal/system-generated identifier for the database that contains the materialized view.
DATABASE_NAMEVARCHARName of the database that contains the materialized view.

Usage notes

  • Latency for the view may be up to 180 minutes (3 hours).
  • If you want to reconcile the data in this view with a corresponding view in the ORGANIZATION USAGE schema, you must first set the timezone of the session to UTC. Before querying the Account Usage view, execute:

    ALTER SESSION SET TIMEZONE = UTC;
  • The history is displayed in increments of 1 hour.