mavinoo / laravelBatch

insert batch and update batch in laravel
MIT License
564 stars 118 forks source link

Batch::update without index #84

Open ianrussel opened 2 years ago

ianrussel commented 2 years ago

Hi, I have massive data from external API, and to avoid duplicates, I need to use update instead of insert.SO the idea is to insert the data if it does not exist and update it instead if exists. My question is, is it possible without using an index?

Regards

JarenFeng commented 1 year ago

You can use the 'upsert'.