Welcome Guest, Not a member yet? Register   Sign In
Soft Delete VS hard Delete
#3

(This post was last modified: 09-22-2018, 02:31 AM by CINewb.)

Whilst I agree soft deletes are nice because it's easy to correct "mistakes" I think there are other implications.

If you have a table that is used in dozens and dozens of queries, then every single query is going to have to include an extra condition on the field that indicates whether the row is deleted or not. Any ommissions here could have undesired consequences that might not be noticed for quite a while. For example the calculation of a customer's balance that doesn't account for invoices that have been deleted won't be noticed until some invoices actually get deleted.
Reply


Messages In This Thread
Soft Delete VS hard Delete - by ignitedcms - 09-15-2018, 01:20 AM
RE: Soft Delete VS hard Delete - by Paradinight - 09-15-2018, 02:20 AM
RE: Soft Delete VS hard Delete - by CINewb - 09-22-2018, 02:30 AM
RE: Soft Delete VS hard Delete - by ignitedcms - 09-22-2018, 01:45 PM
RE: Soft Delete VS hard Delete - by Pertti - 09-23-2018, 08:16 AM
RE: Soft Delete VS hard Delete - by ignitedcms - 09-25-2018, 11:44 AM
RE: Soft Delete VS hard Delete - by qury - 09-25-2018, 11:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB