Use transactions for large imports