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

Check running queries to decide whether we should refresh a view #1837

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

sausage-todd
Copy link
Contributor

When a running sequelize query times out, only the sequelize execution stops. The actual query in the database keeps running.

For some reason refresh of the mv_organizations_cube takes longer than even the extended timeout of 15 mins, we end up running multiple refreshes in the database, which creates unnecessary load on the database.

We'll still need to figure out what's the reason for refreshes taking so long.
But in the meanwhile, we'll look into the database for running queries to see if there is already an ongoing one.

@sausage-todd sausage-todd merged commit d47c658 into main Nov 10, 2023
8 checks passed
@sausage-todd sausage-todd deleted the mv-cube-refresh branch November 10, 2023 13:13
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.

None yet

2 participants