Soft deletion is essentially replaced by an update. The principle is to add a deleted mark to a record that needs to be deleted, such as the deletion time field. When querying, determine whether the record appears in the query by judging the field value. The results are concentrated, thereby indirectly achieving the effect of deletion....
Soft deletion is essentially replaced by an update. The principle is to add a deleted mark to a record that needs to be deleted, such as the deletion time field. When querying, determine whether the record appears in the query by judging the field value. The results are concentrated, thereby indirectly achieving the effect of deletion....