Break migration into smaller transactions