mysql.batch

mysql.batch

mysql.batch

Function

Set the number of rows per batch for batch exec.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
sizeIntNo0Batch size; values less than 0 are treated as 0.

Return value

TypeDescription
MysqlReturns the new MySQL query builder.

Example

Notes

  • batch(0) means that all rows will be used for INSERT batch preview and optimization; non-INSERT execution will be processed in batches of 1 row.