maxThreads

Talks about:

The maxThreads configuration controls how many threads are used during code generation. The maximum number will be capped to the number of available CPU cores of your system.

Configuration Options

Option: ‘1’

The default value of the maxThreads configuration option is 1 which uses one thread to generate code.

Option: ‘123’

Changing the maxThreads configuration option to 123 will use the available number of CPU cores in your system or 123 threads, depending on which is lower.

Tooling

Maven

In order to use YoSQL together with Maven, take a look at the tooling documentation for Maven.

Gradle

In order to use YoSQL together with Gradle, take a look at the tooling documentation for Gradle.

plugins {
  java
  id("wtf.metio.yosql") version "2021.4.21"
}

yosql {
  resources {
    maxThreads.set(123)
  }
}
plugins {
  id "java"
  id "wtf.metio.yosql" version "2021.4.21"
}

yosql {
  resources {
    maxThreads = 123
  }
}

Bazel

In order to use YoSQL together with Bazel, take a look at the tooling documentation for Bazel.

CLI

In order to use YoSQL on the command line, take a look at the tooling documentation for CLI.

$ yosql --resources-max-threads=configValue

The shorter form is available as well:

$ yosql --max-threads=configValue