We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb148a9 commit 1872bdcCopy full SHA for 1872bdc
packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.js
@@ -30,7 +30,8 @@ const getThreadsCount = () => {
30
31
const cpuCount = os.cpus()?.length;
32
if (cpuCount) {
33
- return Math.max(1, cpuCount - 1);
+ // there's no practical boost above 5 threads even if you have more cores.
34
+ return Math.min(Math.max(1, cpuCount - 1), 5);
35
}
36
37
return 3; // Default (like the workerpool do)
0 commit comments