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

git pw patch update is too slow #32

Open
andy-shev opened this issue Nov 14, 2018 · 2 comments
Open

git pw patch update is too slow #32

andy-shev opened this issue Nov 14, 2018 · 2 comments

Comments

@andy-shev
Copy link

andy-shev commented Nov 14, 2018

Rather the point to confirm than the bug.

Instance: patchwork.ozlabs.org
Amount of patches: 15

% time git pw patch update --state superseded --archived yes $(seq 993588 993602)
...
real    0m44.679s
user    0m0.701s
sys     0m0.223s

Instance: patchwork.kernel.org
Amount of patches: 13

% time tsocks pwclient update -a yes -s Superseded 9244263 9244267 9244279 9244281 9244285 9244293 9244303 9244309 9244311 9244319 9244321 9244327 9244335

real    0m12.203s
user    0m0.097s
sys     0m0.024s
@andy-shev
Copy link
Author

andy-shev commented Nov 14, 2018

Just a side note: I have git pw and pwclient running on different machines, surprisingly the former is run on way much more powerful machine (44 cores server vs. 4 cores desktop).

@stephenfin
Copy link
Member

I suspect this is because the XML-RPC API allows for bulk updates, while the REST API does not support this. I need to think about how to do this from the server side. Perhaps allowing updates for series and bundles instead of patches would be a suitable workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants