Icon

5. Chunk Loop

<p><strong>Chunk Loop</strong></p><p>This workflow implements an example of a chunk loop using the <em>Chunk Loop Start</em> node. The chunk loop processes the entire data table once, however, it processes the rows in pre-defined groups (so-called <em>chunks</em>). Processing smaller chunks of data at a time speeds up the execution time. The chunk size (i.e., the number of rows to be processed per iteration) can be defined in the <em>Chunk Loop Start</em> node.</p><p>The goal of this workflow is similar to the workflow "1. Counting Loop": Generate fake data with 3 clusters over 2 coordinates (x, y) and then shift the x-values (Universe_0_0) by adding the current iteration number to its value (e.g., x+0 in the first iteration, x+1 in the second iteration, etc.).</p>
Annotations and comments
  • Workflow: Chunk Loop This workflow implements an example of a chunk loop using the Chunk Loop Start node. The chunk loop processes the entire data table once, however, it processes the rows in pre-defined groups (so-called chunks). Processing smaller chunks of data at a time speeds up the execution time. The chunk size (i.e., the number of rows to be processed per iteration) can be defined in the Chunk Loop Start node. The goal of this workflow is similar to the workflow "1. Counting Loop": Generate fake data with 3 clusters over 2 coordinates (x, y) and then shift the x-values (Universe_0_0) by adding the current iteration number to its value (e.g., x+0 in the first iteration, x+1 in the second iteration, etc.).
  • Generating data 3 clusters, 2 coordinates (Universe_0_0, Universe_0_1)
  • Visualizing data
  • Loop body
  • Visualizing data Check data range for each group of data (Iter #)
  • Define number of chunks or rows per chunk
  • Color by clusters
  • 3 clusters 2 coordinates
  • Shift values and replace original values
  • Concatenate data of each iteration
  • Visualize x-shifted data
  • Visualize original data

Nodes

Extensions

Links