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

Figure out a datastore #5

Open
di opened this issue Jun 6, 2022 · 1 comment
Open

Figure out a datastore #5

di opened this issue Jun 6, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@di
Copy link
Member

di commented Jun 6, 2022

Currently this loads all files into memory, and does some rudimentary in-process caching of files.

Ideally this would be replaced with something that would perform slightly better, without having to hold all of PyPI in memory forever. Something like redis with a 24 hour timeout.

Any potential solution should probably not store files on disk.

@miketheman
Copy link
Member

Might also be interesting to look at sqlite as a persistent volume datastore - it can scale pretty well.

Here's how these folks did it on k8s: https://www.getharvest.com/blog/running-sqlite-on-kubernetes-surprisingly-not-bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants