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

Implement thread locking for caches #296

Merged
merged 5 commits into from
Aug 16, 2022
Merged

Conversation

philippjfr
Copy link
Member

@philippjfr philippjfr commented Aug 16, 2022

Since Lumen dashboards take advantage of both threading and caching by default it is quite common for multiple threads to attempt cache lookups at the same time. If they all attempt to look for the same data or schema the query may be run multiple times pointlessly.

Here we implement thread locking for caches ensuring that once a single thread attempts to perform a cache lookup other threads won't simultaneously run a query.

@philippjfr philippjfr merged commit cb47e76 into master Aug 16, 2022
@philippjfr philippjfr deleted the thread_cache_locking branch August 16, 2022 17:09
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant