mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Lower number of threads.
This commit is contained in:
parent
85e1c88d12
commit
213f84580f
@ -216,6 +216,10 @@ void SettingMaxThreads::setAuto()
|
||||
UInt64 SettingMaxThreads::getAutoValue() const
|
||||
{
|
||||
static auto res = getNumberOfPhysicalCPUCores();
|
||||
|
||||
if (res > 32)
|
||||
res /= 2;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user