maxThreads

Talks about: <a class="post-tag post-tag-resources" href="/tags/resources">resources</a>, and <a class="post-tag post-tag-threads" href="/tags/threads">threads</a>

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

Ant

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

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

As long as the name of the config option is unique across all configuration groups, you can use the shorter form:

$ yosql --max-threads=configValue

Gradle

In order to use YoSQL together with Gradle, take a look at the tooling documentation for Gradle. The maxThreads setting can be configured using Gradle in Kotlin syntax like this:

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

yosql {
  resources {
    maxThreads.set(configValue)
  }
}

or in Groovy syntax like this:

plugins {
  id "java"
  id "wtf.metio.yosql" version "2023.2.22"
}

yosql {
  resources {
    maxThreads = configValue
  }
}

Maven

In order to use YoSQL together with Maven, take a look at the tooling documentation for Maven. The maxThreads setting can be configured using Maven like this:

<build>
  <plugins>
    <plugin>
      <groupId>wtf.metio.yosql</groupId>
      <artifactId>yosql-tooling-maven</artifactId>
      <version>2023.2.22</version>
      <configuration>
        <resources>
          <maxThreads>configValue</maxThreads>
        </resources>
      </configuration>
    </plugin>
  </plugins>
</build>