Use partition-all with batches.