Apply batch in one transaction