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

wsgetpeople cache / stats #58

Open
multiscan opened this issue Feb 27, 2025 · 0 comments
Open

wsgetpeople cache / stats #58

multiscan opened this issue Feb 27, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@multiscan
Copy link
Contributor

The fact of using api.epfl.ch instead of accessing directly the database makes wsgetpeople much slower than the original version. We have to do several api requests per person listed and, for long lists, this takes a lot of time. All api requests are cached for 24h. This helps but I think there should prefetch and cache all the requests to wsgetpeople in periods of low traffic.
The idea is to create a model store in the work database where we log the various requests, the frequency we get them, the last time we refreshed the cache etc. This will enable a possibly more efficient pre-caching mechanism.

@multiscan multiscan added the enhancement New feature or request label Feb 27, 2025
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

1 participant