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

Better handling/treatment of expensive search queries #10777

Open
krauselukas opened this issue Feb 15, 2021 · 0 comments
Open

Better handling/treatment of expensive search queries #10777

krauselukas opened this issue Feb 15, 2021 · 0 comments
Labels
Bug Frontend Things related to the OBS RoR app

Comments

@krauselukas
Copy link
Contributor

krauselukas commented Feb 15, 2021

Issue Description

At the moment we allow very expensive search queries on the OBS API on endpoints like search/request. Those can take hours in order to be processed and can become very memory hungry.

Expected Result

Search queries that take hours or consume to much memory shouldn't be possible (limited) or better handled.
Possible solutions could be only allowing more specific search request by introducing scopes or simply starting with timeouts.

How to Reproduce

An example would be the following search query for the mentioned endpoint: params={"match"=>"action/target/@project='openSUSE:Factory' or action/source/@project='openSUSE:Factory'"}

@krauselukas krauselukas added the Frontend Things related to the OBS RoR app label Feb 15, 2021
@hennevogel hennevogel added the Bug label Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Frontend Things related to the OBS RoR app
Projects
None yet
Development

No branches or pull requests

2 participants