Schema:

ORGANIZATION_USAGE

For guidance on query performance when using organization-wide usage views, see Performance (Organization Usage).

WAREHOUSE_LOAD_HISTORY view

Important

This view is only available in the organization account. For more information, see Premium views in the organization account.

Organization Usage performance

When you query a specific view in the SNOWFLAKE.ORGANIZATION_USAGE schema, follow the organization-wide guidance in Performance (Organization Usage): bound every scan on history views, list columns explicitly, and use the time filter column table plus worked SQL and anti-patterns there.

This Organization Usage view can be used to analyze the workload on your warehouse within a specified date range.

See also:

WAREHOUSE_METERING_HISTORY view

Columns

Note

For the output columns of this view, the query load value is the ratio of the total execution time (in seconds) of all queries in a specific state in an interval by the total time (in seconds) for that interval.

For example, if 276 seconds was the total time for 4 queries in a 5 minute (300 second) interval, then the query load value is 276 / 300 = 0.92.

Organization-level columns

Column NameData TypeDescription
ORGANIZATION_NAMEVARCHARName of the organization.
ACCOUNT_LOCATORVARCHARSystem-generated identifier for the account.
ACCOUNT_NAMEVARCHARUser-defined identifier for the account.

Additional columns

Column NameData TypeDescription
START_TIMETIMESTAMP_LTZThe start of the specified time range (in the UTC time zone) in which the warehouse usage took place.
END_TIMETIMESTAMP_LTZThe end of the specified time range (in the UTC time zone) in which the warehouse usage took place.
WAREHOUSE_IDNUMBERInternal/system-generated identifier for the warehouse.
WAREHOUSE_NAMEVARCHARName of the warehouse.
AVG_RUNNINGNUMBER(38,9)Query load value for queries executed.
AVG_QUEUED_LOADNUMBER(38,9)Query load value for queries queued because the warehouse was overloaded.
AVG_QUEUED_PROVISIONINGNUMBER(38,9)Query load value for queries queued because the warehouse was being provisioned.
AVG_BLOCKEDNUMBER(38,9)Query load value for queries blocked by a transaction lock.

Usage notes

  • Latency for the view may be up to 24 hours.
  • Load history is shown in 5-minute intervals.