Note
This variable is available starting with V1.4.
Description
ob_bnl_join_cache_size specifies the amount of data cached for each Batch Nested Loop Join (BNLJ) operation.
Privilege requirements
Query variables
Global level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to view the value of a global system variable.Session level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle-compatible mode) or theinformation_schema.SESSION_VARIABLESview (MySQL-compatible mode) to view the value of a session system variable.
Modify variables
Global level
systenant can modify the value of a global system variable directly.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable.
Session level
systenant and all user tenants can modify the value of a session system variable directly.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 10485760 |
| Value range | [1, 9223372036854775807] |
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the amount of data cached for each Batch Nested Loop Join (BNLJ) operation to 10485760.
Global level
obclient> SET GLOBAL ob_bnl_join_cache_size=10485760;Session level
obclient> SET ob_bnl_join_cache_size=10485760;