optimize calculation of px expected worker count

This commit is contained in:
sdc
2024-02-28 03:44:38 +00:00
committed by ob-robot
parent 8cf87984db
commit ba233cf3c1
10 changed files with 578 additions and 119 deletions

View File

@ -12666,7 +12666,7 @@ int ObLogPlan::calc_plan_resource()
get_optimizer_context().get_minimal_worker_map()))) {
LOG_WARN("fail analyze px stmt thread group reservation count", K(ret));
} else {
LOG_TRACE("max parallel thread group count",
LOG_TRACE("[PxResAnaly]max parallel thread group count",
K(max_parallel_thread_count), K(max_parallel_group_count));
get_optimizer_context().set_expected_worker_count(max_parallel_thread_count);
get_optimizer_context().set_minimal_worker_count(max_parallel_group_count);