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

Use memcache #393

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Use memcache #393

wants to merge 2 commits into from

Conversation

stijn-uva
Copy link
Member

The configuration manager currently queries the postgres database every time a config value is read. This is not a huge problem, since Postgres is fast and does some caching by itself. But it does mean a lot of database round-trips that are not necessary, because the value has not changed in the meantime and the query's result will not have changed either.

This PR optionally uses memcached to cache these values so the database is only queried when necessary. If memcached is not available, the database is queried each time, same as before.

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.

1 participant