batch

Plugin

ArgDescriptionType
batch_sizeSize of batch (defaults to 10).int64
batch_funcA VQL Lambda that determines when a batch is ready. Example ‘x=>len(list=x) >= 10’.string
queryRun this query over the item.StoredQuery (required)

Description

Batches query rows into multiple arrays.

This is useful for batching multiple rows from a query into another query, such as sending results to an API endpoint.

Example

SELECT * FROM batch(query={
  SELECT _value
  FROM range(start=0, end=10, step=1)
}, batch_size=3)