Skip to content

Commit

Permalink
Changed insert to batchInsert
Browse files Browse the repository at this point in the history
  • Loading branch information
cmraible committed Jul 25, 2024
1 parent fa802aa commit 374d36e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = createTransactionalMigration(
};
});
// Bulk insert rows into the offer_redemptions table
await knex('offer_redemptions').insert(offerRedemptions);
await knex.batchInsert('offer_redemptions', offerRedemptions, 1000);
}
},
async function down() {
Expand Down

0 comments on commit 374d36e

Please sign in to comment.