Set the max num of direct load thread to 2 * cpu

This commit is contained in:
coolfishchen
2023-06-30 02:53:41 +00:00
committed by ob-robot
parent 96d2098cdf
commit 81cbd7e0fc
4 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ int ObTableDirectInsertCtx::init(ObExecContext *exec_ctx,
param.table_id_ = table_id;
param.batch_size_ = 100;
param.parallel_ = parallel;
param.session_count_ = MIN(parallel, (int64_t)tenant->unit_max_cpu());
param.session_count_ = MIN(parallel, (int64_t)tenant->unit_max_cpu() * 2);
param.px_mode_ = true;
param.online_opt_stat_gather_ = false;
param.need_sort_ = true;