Skip to content

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

Open
joselfrias wants to merge 1 commit intoEHDEN:masterfrom
BMDSoftware:fix/improve_logging_and_refresh_mat_views_timeout
Open

Improve logging in upload, add a refresh timeout for MaterializedViews#285
joselfrias wants to merge 1 commit intoEHDEN:masterfrom
BMDSoftware:fix/improve_logging_and_refresh_mat_views_timeout

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