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

Improve logging in upload, add a refresh timeout for MaterializedViews #285

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joselfrias
Copy link
Contributor

@joselfrias joselfrias commented May 28, 2024

Motivation and Context

Try to fix some issues related with locks in Network Dashboards, by adding a statement timeout to refresh of materialized views to prevent it from occupying too much resources and allow to dealloc the db to other activities when we have a long running materialized view. Additionally, some logging was also added to try to identify an issue that happened with upload that failed after creating an history record.

Summary

  • Statement timeout when executing a reresh of materiailized, raises a timeout exception . If one fails, the process of the other materialized views continues. The default is set to 2h for each one, but can be changed in Constance config.
  • Logging in upload to target the area where the upload got stuck

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