Note
This variable is available starting with V1.4.
Description
auto_increment_cache_size specifies the number of auto-increment values cached.
Privilege requirements
Query variables
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the values of global system variables.Modify variables
systenants can directly modify the values of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the values of global system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 1000000 |
| Value range | [1, 100000000] |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the number of auto-increment values in the cache to 1000000.
obclient> SET GLOBAL auto_increment_cache_size = 1000000;