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

prevent queries from hanging and blocking other queries #1820

Open
divine-comedian opened this issue Sep 12, 2024 · 9 comments
Open

prevent queries from hanging and blocking other queries #1820

divine-comedian opened this issue Sep 12, 2024 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@divine-comedian
Copy link
Collaborator

some queries are hanging when the dapp is under load. the hanging queries are preventing other queries from being ran and causing errors for users on the app

@divine-comedian divine-comedian added the bug Something isn't working label Sep 12, 2024
@CarlosQ96
Copy link
Collaborator

image
These are some of the queries that are hanging.
There queries that hang the most seems related to querying the recurring donations and selecting the squareroot sum for estimated matching.

@CarlosQ96
Copy link
Collaborator

image

@divine-comedian
Copy link
Collaborator Author

@CarlosQ96 what is the update on this issue?

@CarlosQ96
Copy link
Collaborator

I been cleaning the queries manually every now and then. The main query fetching the square root is the culprit.
As I'm finishing issues, ill jump to this between today and tomorrow.

@divine-comedian
Copy link
Collaborator Author

Yikes! Definitely not sustainable to manually clean queries, thanks for investigating and please update us when you have the fix.

@divine-comedian
Copy link
Collaborator Author

was related to cronjob - @CarlosQ96 will keep working on it this week with estimated matching query fixes.

@divine-comedian
Copy link
Collaborator Author

@CarlosQ96 what is the update on this issue?

@kkatusic
Copy link
Collaborator

image

@CarlosQ96 can we introduce here some function and trigger for database, there are a lots of the SUM, COUNT... queries here on this list? only suggestion ;)

@CarlosQ96
Copy link
Collaborator

I can make a list of the heaviest queries and see how we can optimize them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

3 participants