laravelBatch icon indicating copy to clipboard operation
laravelBatch copied to clipboard

Batch::update without index

Open ianrussel opened this issue 3 years ago • 1 comments
trafficstars

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

ianrussel avatar Feb 25 '22 11:02 ianrussel

You can use the 'upsert'.

JarenFeng avatar Mar 08 '23 11:03 JarenFeng