mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +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