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

API response take a long time #817

Open
temi opened this issue Jun 13, 2024 · 1 comment
Open

API response take a long time #817

temi opened this issue Jun 13, 2024 · 1 comment
Milestone

Comments

@temi
Copy link
Contributor

temi commented Jun 13, 2024

APIs such as the one to fetch a profile can take a long time (more than 0.5 seconds). Downloading content for a batch of species profiles adds up. Investigate what is causing this to happen.
One option is to add a flag to fetch opus config only when it is needed.

@temi temi added this to the 4.3 milestone Jun 13, 2024
@adam-collins
Copy link

Performance varies depending on the opusID. The worst performer on dev is foa, where the slowest request among the first 5 profiles retrieved was 5.4 seconds. Executing 10 concurrent requests to dev for foa reduces the average time to 767 milliseconds for the 19898 profiles with a guid, or 4.24 hours for all foa profiles with a guid.

For a comparison, the /export service will return all the required information for foa in a minute or two.

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

2 participants