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

Retrieving job list is slow #1483

Open
2 tasks done
sylvlecl opened this issue Apr 26, 2023 · 0 comments
Open
2 tasks done

Retrieving job list is slow #1483

sylvlecl opened this issue Apr 26, 2023 · 0 comments
Labels
back-end enhancement New feature or request

Comments

@sylvlecl
Copy link
Member

sylvlecl commented Apr 26, 2023

Description

Retrieving the list of jobs in production application takes 3 seconds.
This requires some analysis to understand what takes so long:

  • retrieving from the database?
  • filtering results bases on user rights etc ?

I suspect that what takes long is the check on permissions, which requires to retrieve user and group information for each involved study separately, hence a lot of requests to the database.

Expected Behavior

Such an operation should be fast (hundreds of ms maximum).

Possible Solution

If the problem comes indeed from the check on permission, we should retrieve all necessary information in only one request to database. Similar issue as #1435

Environment

  • Production
  • Staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants