The SET_THREAD_COUNT procedure is used to set the number of threads for window compaction.
Syntax
DBMS_DAILY_MAINTENANCE.SET_THREAD_COUNT(thread_count INT);
Parameters
| Parameter | Description |
|---|---|
| thread_count | Specifies the number of threads for window compaction. The default value is 0, indicating that the system calculates the number of threads based on the tenant-related configurations. If a non-zero value is manually set, the system uses the user-specified value as the number of threads for window compaction. |
Considerations
Only user tenants are allowed to initiate this operation. The
systenant is not supported.During window compaction, the number of threads is not controlled by the tenant-level parameter
compaction_low_thread_score. It can only be set through thethread_countparameter in theDBMS_DAILY_MAINTENANCE.SET_THREAD_COUNTprocedure.
Examples
Set the number of threads for window compaction to 10.
obclient(root@mysql001)[(none)]> CALL DBMS_DAILY_MAINTENANCE.SET_THREAD_COUNT(10);Set the number of threads for window compaction to the value calculated by the system.
obclient(root@mysql001)[(none)]> CALL DBMS_DAILY_MAINTENANCE.SET_THREAD_COUNT(0);
References
For more information about window compaction and related operations, see Window Compaction.
