Home › Glossary › foreachBatch

foreachBatch

A Structured Streaming output option, called through writeStream.foreachBatch, that hands every micro-batch to your own batch code, which suits MERGE upserts and destinations lacking a streaming writer. Delivery is at least once, so the code should be safe to repeat.

Read more: Microsoft Learn

In the Ultra Transcenders books

DP-750DP-700

Each book explains foreachBatch in context, with comparison tables and the common traps.

Terms in this definition

See foreachBatch in the full glossary