sgn icon indicating copy to clipboard operation
sgn copied to clipboard

Prevent materialized view refreshes from clobbering each other

Open bellerbrock opened this issue 3 years ago • 2 comments

Expected Behavior

Instead of using the 'currently_refreshing' column in the matviews table before issuing a new refresh, check if one is running via pg_stat_activity. If one is and it is of the same type, terminate it and then issue a new refresh.

For Bugs:

Environment

Steps to Reproduce

bellerbrock avatar Jan 24 '22 17:01 bellerbrock

partially completed here, need to test and finish https://github.com/solgenomics/sgn/tree/topic/fix_clobbering_matview_refresh

bellerbrock avatar Mar 30 '22 17:03 bellerbrock

what is the status of this ticket? I think it can probably be closed?

lukasmueller avatar Sep 22 '22 16:09 lukasmueller

We should probably close this ticket at this point if it is not considered a problem anymore...?

lukasmueller avatar May 18 '23 14:05 lukasmueller