---
title: "batch · RUAL Documentation"
description: "Executes the given array in batches, this is the non queue version."
canonical: https://docs.rual.nl/block-types/foreach/function_foreach_batch
language: en
---

# batch

This block is part of the [`foreach`](https://docs.rual.nl/block-types/foreach) group and was last modified in core [`v12.0.4`](https://docs.rual.nl/core-versions/120004).

Executes the given array in batches, this is the non queue version.

- flow `flow`

- array required `array`

- batch `number` Default `100`

- concurrency `number` How many iterate functions should be ran at the same time • Min: 0 • Max: 1000

Default `5`

- flow `flow`

- Iterator `execute_function`

A typical wiring for [batch](https://docs.rual.nl/block-types/foreach/function_foreach_batch): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [with values](https://docs.rual.nl/block-types/array/array_of_values) feeds the `array` pin; the function out pin wires to an [execute](https://docs.rual.nl/block-types/function%20execution/function_custom_execute_from_trigger) block.

![Studio canvas example for the batch block: typical wiring for batch.](https://docs.rual.nl/canvas-examples/function_foreach_batch.png)

### Version history

Introduced in [`v12.0.4`](https://docs.rual.nl/core-versions/120004).
