Should I delete or disable a row in a relational database?

后端 未结 18 2355
忘了有多久
忘了有多久 2020-12-23 10:09

In a brand new program where space isn\'t really that big a deal, is it better to delete a row or to disable a row by let\'s say a boolean \"Disabled\" and have the program

18条回答
  •  悲&欢浪女
    2020-12-23 10:45

    It's probably best to add "deleted" column and offer users to undelete or purge deleted items.

提交回复
热议问题