You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #305 & #306, we started supporting true nested deletion in graviton. This is unsafe, so we must establish a method to recover data before physically deleting it in case of accidental deletion.
A good choice is to set a buffer time before actual deletion. Users have the option to undo the deletion operation within a certain time frame.
Mark the entity and its related sub-entities as deleted and can't be accessed.
Add a new key-value pair that indicates the entities and their sub-entities have been deleted. The key can share the same prefix as the key that represents deleted entities.
Add a property that holds deletion information for an entity. For example, introducing a field named 'valid' in CatalogEntity, if it's false, then that means the entity has been marked as deleted. This option is straightforward to implement.
Set multiple free bytes before the serialized byte array of entity to hold deletion information. It's similar to the second one.
I prefer the first option, while the second one can also be considered. What's your opinion? @jerryshao
Describe the subtask
After #305 & #306, we started supporting true nested deletion in graviton. This is unsafe, so we must establish a method to recover data before physically deleting it in case of accidental deletion.
A good choice is to set a buffer time before actual deletion. Users have the option to undo the deletion operation within a certain time frame.
Parent issue
#294
The text was updated successfully, but these errors were encountered: