Overview
auto_increment_cache_size specifies the number of auto-increment values cached.
Privilege requirements
Query variables
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement or theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Modify variables
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 1000000 |
| Value range | [1, 100000000] |
| Effective Scope | Global |
| Modifiable | Yes, you can use theSETStatement modification. |
Configuration example
Set the cache auto-increment value to 1,000,000.
obclient> SET GLOBAL auto_increment_cache_size = 1000000;