Schema:

ORGANIZATION_USAGE

SEARCH_OPTIMIZATION_HISTORY view

The SEARCH_OPTIMIZATION_HISTORY view in the ORGANIZATION_USAGE schema is used for querying the search optimization service maintenance history for a specified table within a specified date range. The information returned by the function includes the table name and credits consumed each time a search optimization maintenance operation occurred.

Columns

Column NameData TypeDescription
ORGANIZATION_NAMEVARCHARName of the organization where the usage took place.
ACCOUNT_NAMEVARCHARName of the account where the usage took place.
ACCOUNT_LOCATORVARCHARName of the account locator.
REGIONVARCHARName of the region where the account is located.
USAGE_DATEDATEDate (in the UTC time zone) of this usage record.
CREDITS_USEDNUMBERNumber of credits billed for the search optimization service during the USAGE_DATE.
TABLE_IDNUMBERInternal/system-generated identifier for the search optimization service.
TABLE_NAMEVARCHARThis is a system-generated alias that contains the ID of the table for which search optimization was enabled; that ID is embedded inside a string of the form “SEARCH OPTIMIZATION ON TABLE_ID: <optimized_table_id>”. For example, if you enable search optimization on a table named accounts, and if accounts has ID 1200, then the TABLE_NAME (alias) shown in this column will be “SEARCH OPTIMIZATION ON TABLE_ID: 1200”.
SCHEMA_IDNUMBERInternal/system-generated identifier for the schema that contains the search optimization service.
SCHEMA_NAMEVARCHARName of the schema that contains the search optimization service.
DATABASE_IDNUMBERInternal/system-generated identifier for the database that contains the search optimization service.
DATABASE_NAMEVARCHARName of the database that contains the search optimization service.

Usage notes

  • Latency for the view may be up to 24 hours (1 day).