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

Introduce cache for singleton record of Configuration #16130

Merged
merged 6 commits into from
May 15, 2024

Conversation

eduardoj
Copy link
Member

@eduardoj eduardoj commented May 14, 2024

Instead of querying the database every time a configuration parameter is read, we make all methods of the Configuration class to pass internally through a new fetch method which retrieves the Configuration singleton record from the cache.

Follow up to #16123.

@eduardoj eduardoj added the review-app Apply this label if you want a review app started label May 14, 2024
@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label May 14, 2024
@obs-bot
Copy link
Collaborator

obs-bot commented May 14, 2024

@eduardoj eduardoj force-pushed the feature/configuration_cache branch 2 times, most recently from ef0b5a9 to ec6454c Compare May 14, 2024 15:26
... to access Configuration singleton
Otherwise, a modification of a field with `update_column` will not
update the `updated_at` column and a cache miss will not happen.
This way, a miss in the Configuration singleton cache will happen.
@eduardoj eduardoj force-pushed the feature/configuration_cache branch from ec6454c to 4fcf548 Compare May 15, 2024 12:46
@eduardoj eduardoj marked this pull request as ready for review May 15, 2024 12:46
@hennevogel hennevogel merged commit faa79aa into openSUSE:master May 15, 2024
21 checks passed
@eduardoj eduardoj deleted the feature/configuration_cache branch May 15, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app review-app Apply this label if you want a review app started
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants