Note
This view is available starting with V4.2.5.
Purpose
Displays the SPM plan evolution information for all tenants.
Columns
Column |
Type |
Nullable |
Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | Tenant ID. |
| OWNER | varchar(128) | NO | The user who executes the evolution task. |
| RECORD_TIME | timestamp(6) | NO | The time when the evolution result was recorded. |
| SVR_IP | varchar(46) | NO | The IP address of the server that executes the evolution task. |
| SVR_PORT | bigint(20) | NO | The server port for executing the evolution task. |
| SQL_ID | varchar(32) | NO | SQL ID for executing the evolution task. |
| TYPE | varchar(32) | NO | Record type:
|
| START_TIME | timestamp(6) | YES | The start time of the evolution task. |
| END_TIME | timestamp(6) | YES | The end time of the evolution task. |
| STATUS | varchar(7) | YES | Evolution task status:
|
| NEW_PLAN_BETTER | tinyint(4) | YES | Whether the evolution plan is better. |
| EVO_PLAN_EXEC_COUNT | bigint(20) | YES | Number of times the evolution plan is executed during the evolution period. |
| EVO_PLAN_CPU_TIME | bigint(20) | YES | The average CPU overhead of the evolution plan during evolution. |
| BASELINE_EXEC_COUNT | bigint(20) | YES | Number of times the baseline plan is executed during the evolution period. |
| BASELINE_CPU_TIME | bigint(20) | YES | The average CPU cost of the baseline plan during the evolution period. |
Sample query
Query the SPM plan evolution information for all tenants under the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_SPM_EVO_RESULT;
