Whenever we have to update the database; we delete the values from the table first and then add the latest values. This ensures that everything is updated correctly.
This adds little bit overhead to the system but we haven’t faced any performance issues because of this.
Is this always the best thing to do?
No.
Use the UPDATE statement.
Additionally, if you worried about integrity, scope it within a transaction: