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

Query timeouts #5646

Open
mattiaverga opened this issue Apr 25, 2024 · 1 comment
Open

Query timeouts #5646

mattiaverga opened this issue Apr 25, 2024 · 1 comment
Labels
high-gain high-trouble reliability Issues pertaining to Bodhi's reliability Search Issues related to Bodhi's searching features

Comments

@mattiaverga
Copy link
Contributor

When searching updates with a high number of results the query hits the timeout. Maybe this was the culprit of recent server restarts.
To reproduce, go to the updates page and search for "plasma" using the default settings.

I think we need to refine the query defaults to be much more limited. BTW, the defaults search in "all pending, all current" releases, which means include ELN which is a never ending release which will always grew the list of results.

@mattiaverga mattiaverga added reliability Issues pertaining to Bodhi's reliability Search Issues related to Bodhi's searching features medium-trouble high-gain labels Apr 25, 2024
@mattiaverga
Copy link
Contributor Author

From further investigation, this is indeed what is causing server hiccups, at least before we added a query timeout setting.

The problem here (which I can reproduce in the local dev environment) is that loading an Update object causes a waterfall of loading all its builds, all comments, all feedback, etc.
So when a user search for a package which belongs to an update with a lot of builds, this causes a lot of sql traffic - for example, searching for kpmcore with the default settings in the webUI form causes ~10800 queries and takes 25 seconds in my dev environment...

I tried to play with sqlalchemy options and refining queries, but I only got marginal improvements. No idea how to fix this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high-gain high-trouble reliability Issues pertaining to Bodhi's reliability Search Issues related to Bodhi's searching features
Projects
None yet
Development

No branches or pull requests

1 participant