Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store deleted data in a separate place (table or file) instead of in-place soft delete #7

Open
MoralCode opened this issue Jul 21, 2022 · 3 comments

Comments

@MoralCode
Copy link
Owner

MoralCode commented Jul 21, 2022

See https://brandur.org/soft-deletion for the reasons why.

The main reason i added soft deletion was in case users accidentally deleted something important and missed the timeout window provided by react-admin.

@MoralCode
Copy link
Owner Author

MoralCode commented Oct 10, 2022

it seems as though that article is based on/written for Postgres databases. Im not sure if jsonb columns exist in MariaDB (what classclock uses).

another alternative is to just make a copy of every table and have that be for deleted data, or maybe have a separate instance of the DB?

Should probably reach out to the author to see if they know of any concrete implementations of this strategy in the wild (i.e. other open source projects).

@MoralCode
Copy link
Owner Author

since mariaDB does not have JSON columns (according to https://mariadb.com/resources/blog/json-with-mariadb-10-2/) another option may be best to just export the data for deleted columns into a series of JSON files in a directory in a format that can potentially be re- imported into the admin panel later if needed

@MoralCode
Copy link
Owner Author

@MoralCode MoralCode changed the title Use a deleted data table instead of in-place soft delete store deleted data in a separate place (table or file) instead of in-place soft delete Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant