Note
This variable is available starting with V2.2.77.
Description
ob_proxy_partition_hit specifies whether to send the SQL statements to the OBServer nodes where the data of the primary partitions of the SQL statements are stored.
Attributes
| Attribute | Description |
|---|---|
| Type | Boolean |
| Default value | 1 |
| Value range |
|
| Scope | Session |
| Modifiable | No. You can specify this variable when you create a tenant. You cannot modify it by executing an SQL statement after the tenant is created. |
Usage notes
You cannot query the value of this variable by executing the SHOW VARIABLES statement or querying the SYS.TENANT_VIRTUAL_SESSION_VARIABLE view (Oracle mode) or the information_schema.SESSION_VARIABLES view (MySQL mode). You can query the value of this variable by querying the SYS.DBA_OB_SYS_VARIABLES view (Oracle mode) or the oceanbase.DBA_OB_SYS_VARIABLES view (MySQL mode).
You can also query the value of this variable by executing the SELECT statement:
obclient> SELECT @@ob_proxy_partition_hit;
The query result is as follows:
+--------------------------+
| @@ob_proxy_partition_hit |
+--------------------------+
| 1 |
+--------------------------+
1 row in set