Process items in batches rather than one-by-one.