Performance planning often starts by estimating how many cells a small batch will touch.

Program

Play the script to change the number of chunks and watch the cell count update.

batch_size.R
chunk_count <- 
chunk_size <- 5
cells <- chunk_count * chunk_size
label <- paste("cells", cells, sep = ":")
cat(label, "\n", sep = "")
chunk_count <- 
chunk_size <- 5
cells <- chunk_count * chunk_size
label <- paste("cells", cells, sep = ":")
cat(label, "\n", sep = "")
chunk_count <- 
chunk_size <- 5
cells <- chunk_count * chunk_size
label <- paste("cells", cells, sep = ":")
cat(label, "\n", sep = "")
chunk count The number of chunks controls how many small batches will be touched.
chunk size The fixed chunk size keeps the estimate simple and deterministic.
cell estimate Multiplying count by size gives a compact workload estimate.