mysql.workers

mysql.workers

mysql.workers

Function

Set the number of concurrent jobs for batch exec.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
countIntNo1Number of jobs; valid range 1 to 4096.

Return value

TypeDescription
MysqlReturns the new MySQL query builder.

Example

Notes

  • The number of underlying Tokio worker threads will be limited to the CPU parallelism and the upper limit of 64.
  • all() and one() do not support workers.