mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Limit the number of threads.
This commit is contained in:
parent
12026ab9c2
commit
0335c698e0
@ -1230,6 +1230,9 @@ void InterpreterSelectQuery::executeFetchColumns(
|
||||
+ ", maximum: " + settings.max_columns_to_read.toString(),
|
||||
ErrorCodes::TOO_MANY_COLUMNS);
|
||||
|
||||
/// General limit for then number of threads.
|
||||
pipeline.setMaxThreads(settings.max_threads);
|
||||
|
||||
/** With distributed query processing, almost no computations are done in the threads,
|
||||
* but wait and receive data from remote servers.
|
||||
* If we have 20 remote servers, and max_threads = 8, then it would not be very good
|
||||
|
Loading…
Reference in New Issue
Block a user