Skip to content

XMLRPC access extremely slow #77

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

Closed
FrankSommer-64 opened this issue Feb 7, 2024 · 1 comment
Closed

XMLRPC access extremely slow #77

FrankSommer-64 opened this issue Feb 7, 2024 · 1 comment

Comments

@FrankSommer-64
Copy link

When using version 12.9.1 of tcms-api it takes about a second for each server request over https.
Version 12.9 and below are fine.
I haven't tested plain http, but I guess the reason could be SSL certificate checking upon each request.

@FrankSommer-64 FrankSommer-64 changed the title SSL connections extremely slow XMLRPC access extremely slow Mar 14, 2024
@FrankSommer-64
Copy link
Author

Problem isn't SSL, but a design change in the API. TCMS().exec creates a new connection proxy every time. Application code now needs to operate on TCMS().exec instead of TCMS() to avoid performance loss:

connection = TCMS()
connection.exec.TestPlan.filter(...)
connection.exec.TestCase.filter(...)
...
will be opening a new connection for every connection.exec.

proxy = TCMS().exec
proxy.TestPlan.filter(...)
proxy.TestCase.filter(...)
...
will use just one connection.

Behaviour should be mentioned in the documentation.

atodorov added a commit that referenced this issue Apr 27, 2024
v12.9.1 should have been a major version to indicate the change
in behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant