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

Reduce size of test db, anonymize unneeded fields #1693

Merged
merged 1 commit into from
Oct 31, 2023
Merged

Conversation

alastair
Copy link
Member

Description
We want a new version of the development sample database because it's been a long time since the last one was made.

We decided to reduce the number of sounds and downloads that we keep, in order to make the db smaller.

Additionally, delete tables that contain private information that shouldn't be shared, and anonymise a few further columns.

After removing sounds/downloads, but before cleaning the additional tables, the dump was about 800mb (60 compressed). I noticed that most of the space was used by old silk logs and moderation tickets that were no longer connected to any sounds or users. After deleting this, the database was down to 60mb uncompressed/7mb compressed.

Because it's so small, we could probably get away with increasing the number of sounds a bit more if we want. We'd need to evaluate this against the size of the sound archive.

general/management/commands/prune_database.py Outdated Show resolved Hide resolved
general/management/commands/prune_database.py Outdated Show resolved Hide resolved
general/management/commands/prune_database.py Outdated Show resolved Hide resolved
general/management/commands/prune_database.py Show resolved Hide resolved
general/management/commands/prune_database.py Show resolved Hide resolved
@ffont ffont merged commit 46b2ee5 into master Oct 31, 2023
1 check passed
@ffont ffont deleted the prune-database branch October 31, 2023 11:49
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

Successfully merging this pull request may close these issues.

2 participants