Overview
Displays statistics for all workareas executed on the current node of the tenant, such as the number of times data was processed entirely in-memory within the 1 MB to 2 MB range and the number of one-pass executions.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| LOW_OPTIMAL_SIZE | bigint(20) | NO | Minimum Memory for Workarea in Optimal Mode |
| HIGH_OPTIMAL_SIZE | bigint(20) | NO | Maximum Memory for Workarea in Optimal Mode |
| OPTIMAL_EXECUTIONS | bigint(20) | NO | Number of executions in the optimal mode for workarea within the lowest and highest ranges |
| ONEPASS_EXECUTIONS | bigint(20) | NO | Number of Times Workarea Executes in One-Pass Mode Within the Minimum and Maximum Ranges |
| MULTIPASSES_EXECUTIONS | bigint(20) | NO | Number of Executions in Multi-Pass Mode for Workarea Within the Minimum and Maximum Ranges |
| TOTAL_EXECUTIONS | bigint(20) | NO | Total Number of Workarea Executions |
| CON_ID | bigint(20) | NO | Tenant ID |
| SVR_IP | varchar(46) | NO | Server IP Address |
| SVR_PORT | bigint(20) | NO | Server Port Number |
Sample query
View the statistics of all previous workareas executed on the current node of this tenant, displaying the first 10 records.
obclient[oceanbase]> SELECT * FROM oceanbase.V$SQL_WORKAREA_HISTOGRAM LIMIT 10;
The query result is as follows:
+------------------+-------------------+--------------------+--------------------+------------------------+------------------+--------+----------------+----------+
| LOW_OPTIMAL_SIZE | HIGH_OPTIMAL_SIZE | OPTIMAL_EXECUTIONS | ONEPASS_EXECUTIONS | MULTIPASSES_EXECUTIONS | TOTAL_EXECUTIONS | CON_ID | SVR_IP | SVR_PORT |
+------------------+-------------------+--------------------+--------------------+------------------------+------------------+--------+----------------+----------+
| 0 | 1048576 | 12018 | 0 | 0 | 12018 | 1002 | 172.xx.xxx.xxx | 2882 |
| 1048576 | 2097152 | 0 | 0 | 0 | 0 | 1002 | 172.xx.xxx.xxx | 2882 |
| 2097152 | 3145728 | 11 | 0 | 0 | 11 | 1002 | 172.xx.xxx.xxx | 2882 |
| 3145728 | 4194304 | 0 | 0 | 0 | 0 | 1002 | 172.xx.xxx.xxx | 2882 |
| 4194304 | 5242880 | 0 | 0 | 0 | 0 | 1002 | 172.xx.xxx.xxx | 2882 |
| 5242880 | 6291456 | 0 | 0 | 0 | 0 | 1002 | 172.xx.xxx.xxx | 2882 |
| 6291456 | 7340032 | 0 | 0 | 0 | 0 | 1002 | 172.xx.xxx.xxx | 2882 |
| 7340032 | 8388608 | 0 | 0 | 0 | 0 | 1002 | 172.xx.xxx.xxx | 2882 |
| 8388608 | 9437184 | 11 | 0 | 0 | 11 | 1002 | 172.xx.xxx.xxx | 2882 |
| 9437184 | 10485760 | 0 | 0 | 0 | 0 | 1002 | 172.xx.xxx.xxx | 2882 |
+------------------+-------------------+--------------------+--------------------+------------------------+------------------+--------+----------------+----------+
10 rows in set