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

Put files on the filesystem instead of in the database #76

Open
praseodym opened this issue Dec 13, 2021 · 0 comments
Open

Put files on the filesystem instead of in the database #76

praseodym opened this issue Dec 13, 2021 · 0 comments

Comments

@praseodym
Copy link
Member

praseodym commented Dec 13, 2021

Currently CHoice saves the exams in its PostgreSQL database. That database is currently ~700MB in size, which causes a lot of churn backups because files cannot be effectively deduplicated. It also just isn't a great idea to store large files in a database anyway.

I'd suggest the exams be moved to the filesystem (a Kubernetes persistent volume) or e.g. a Google Cloud Storage bucket whenever we're migrated into the cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant