Hi I created a migration script that accepts json file which has thousands of records. I dont have control on the url endpoint of the api that returns a json data. I successfully imported the records on my own database but I need to run a cron task everyday to see if there's a record added/deleted or updated then apply it on my database.
Question is, with these large amount of records, is it better to delete the records on my database then reimport the data from the api endpoint (json) or Do a loop/query/loop/condition to figure out what's got updated/deleted and added then apply it on the database?