morningman commented on code in PR #29891:
URL: https://github.com/apache/doris/pull/29891#discussion_r1450651244


##########
be/src/vec/exec/scan/scanner_context.cpp:
##########
@@ -81,11 +81,7 @@ ScannerContext::ScannerContext(RuntimeState* state, const 
TupleDescriptor* outpu
     if (limit < 0) {
         limit = -1;
     }
-    _max_thread_num = config::doris_scanner_thread_pool_thread_num / 4;
-    _max_thread_num *= num_parallel_instances;
-    _max_thread_num = _max_thread_num == 0 ? 1 : _max_thread_num;
-    DCHECK(_max_thread_num > 0);
-    _max_thread_num = std::min(_max_thread_num, (int32_t)_scanners.size());
+    _max_thread_num = _scanners.size();

Review Comment:
   Think twice, for internal table, this may not be right



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to