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 be6439b commit e8d5b62Copy full SHA for e8d5b62
packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.js
@@ -29,7 +29,8 @@ const getThreadsCount = () => {
29
30
const cpuCount = os.cpus()?.length;
31
if (cpuCount) {
32
- return Math.max(1, cpuCount - 1);
+ // there's no practical boost above 5 threads even if you have more cores.
33
+ return Math.min(Math.max(1, cpuCount - 1), 5);
34
}
35
36
return 3; // Default (like the workerpool do)
0 commit comments