The PURGE_REFRESH_STATS procedure forcibly deletes the statistics of materialized view refreshes that exceed the specified retention period.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
PROCEDURE purge_refresh_stats(
IN mv_name VARCHAR(65535),
IN retention_period INT);
Parameters
| Parameter | Description |
|---|---|
| mv_name | The name of the materialized view.
|
| retention_period | The number of days to retain statistics. The value ranges from 1 to 365,000. Statistics records exceeding this period are automatically deleted. The default value is 31 days.
|
