The SET_MVREF_STATS_PARAMS procedure is used to configure the collection level and data retention period for statistics collection during materialized view refreshes.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
PROCEDURE set_mvref_stats_params(
IN mv_name VARCHAR(65535),
IN collection_level VARCHAR(65535) DEFAULT NULL,
IN retention_period INT DEFAULT NULL);
Parameters
| Parameter | Description |
|---|---|
| mv_name | The name of the materialized view.
|
| collection_level | The collection level of statistics. The default value is TYPICAL. Valid values:
|
| retention_period | The number of days for which statistics are retained. Valid values: 1 to 365000. Statistics records are automatically deleted after the specified number of days. The default value is 31 days.
|
