Performing updates in batches.