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

Speedup owner search #9964

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

adrianschroeter
Copy link
Member

[api] speed up maintainer lookup

Using special backend route the owner search is taking 0.15 seconds instead of 8.5 seconds.

We are down from 15 seconds to 2 seconds in total. 1 second of that is python
startup and SSL handshake.

@adrianschroeter adrianschroeter force-pushed the speedup_owner_search branch 2 times, most recently from 80ac3ec to 70705d4 Compare July 29, 2020 14:58
@DavidKang DavidKang added Backend Things regarding the OBS backend Frontend Things related to the OBS RoR app labels Jul 31, 2020
@adrianschroeter adrianschroeter force-pushed the speedup_owner_search branch 2 times, most recently from 96cfc18 to 5bdd85a Compare August 12, 2020 07:12
@mschnitzer
Copy link
Member

mschnitzer commented Aug 12, 2020

Thank you Adrian! I really appreciate when this gets merged!

@fcrozat
Copy link

fcrozat commented Aug 12, 2020

I'm not 100% sure it is related with this PR but since a few days on IBS, packages which were still returned with bugowner who left the company are no longer returned at all.

@hennevogel
Copy link
Member

This breaks Webui::SearchController...

@eduardoj
Copy link
Member

eduardoj commented Mar 3, 2022

I rebased on master.

eduardoj added a commit to eduardoj/open-build-service that referenced this pull request Mar 4, 2022
This was already done in openSUSE#12001, but was not part of the original pull
request openSUSE#9964.
@eduardoj
Copy link
Member

eduardoj commented Mar 4, 2022

Introducing the method for_package in the model OwnerSearch::Assignee will require the task of adapting and adding specs in the currently failing model tests.

adrianschroeter and others added 6 commits May 11, 2023 16:33
Using special backend route taking 0.15 instead of 8.5 seconds.

We are down from 15 seconds to 2. 1 second of that is python
startup and SSL handshake
Supported filters are 'name' and 'project'. This is much faster
than the going through the XPath engine when multiple names
or projects are specified.

The API will use this in the owner search function, which needs
to be as fast as possible.
test case got adapted to prove the introduced breakage with some webui optimization
commit ada5ac1
Fixes situations where no binary is named like the container
name (in some multibuild situations).

Allows also faster lookups in best case.
This was already done in openSUSE#12001, but was not part of the original pull
request openSUSE#9964.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Things regarding the OBS backend Documentation 📖 Things regarding our documentation Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants