Proposal: Deleted records should not get deleted again #6
Closed
JanezStupar
started this conversation in
General
Replies: 1 comment 1 reply
-
The problem with that strategy is that it may cause explicit deletions to be ignored. CRDTs are meant for distributed local-first use cases, which means every action should be recorded so it can be properly merged. If your specific use case benefits from avoiding repeated deletions, you can implement that in your own code: DELETE FROM table WHERE id = ?1 AND is_deleted = 0 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The app I am working on has a mechanism to delete some records periodically.
I noticed that deletions tend to update the previously deleted records. I think that should not be the case, because all it does really is that it inflates the changesets.
I have already implemented this feature in
synchroflite
. Let me know if you want me to backport it tosql_crdt
Beta Was this translation helpful? Give feedback.
All reactions