Note
- For OceanBase Database V4.3.x, this variable was introduced in OceanBase Database V4.3.2.
- For OceanBase Database V4.2.x, this variable was introduced in OceanBase Database V4.2.3.
Description
innodb_stats_persistent specifies whether to persist InnoDB index statistics to the disk.
Applicability
- This variable is applicable to only OceanBase Database in MySQL mode.
- This variable is used only for compatibility with ecosystem tools and does not affect the features of OceanBase Database.
Limitations
Query the variable
In the
systenant or a user tenant, you can execute theSHOW VARIABLESstatement to query the variable at the global level or query theinformation_schema.GLOBAL_VARIABLESview (in MySQL mode) for the variable at the global level.Modify the variable
In the
systenant, you can directly change the value of the variable at the global level.In a MySQL user tenant, you must have the
SUPERorALTER SYSTEMprivilege to change the value of the variable at the global level.
Attributes
| Attribute | Description |
|---|---|
| Type | ENUM |
| Default value | 1 |
| Value range |
|
| Effective scope | Global |
| Modifiable | Yes. You can use the SET statement to modify the variable. |
Considerations
This variable is used only for compatibility, and its setting does not take effect.
Examples
Configure to persist InnoDB index statistics to the disk.
obclient> SET GLOBAL innodb_stats_persistent=ON;