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

Appeal create take more time #300

Open
singhvikash11 opened this issue Sep 29, 2022 · 1 comment
Open

Appeal create take more time #300

singhvikash11 opened this issue Sep 29, 2022 · 1 comment

Comments

@singhvikash11
Copy link
Member

Description
Appeal creation starts taking more time as policies, and grants grow. One of the reasons is that we load all the policies, grants, and providers instead of the id by query on (policy id, policy version), resource id etc.

Expected behavior
The appeal creation API shouldn't take more than ~ 40-50 ms

@mabdh
Copy link
Member

mabdh commented Sep 30, 2022

For this we will move from gorm and we can optimize the way we fetch data from the DB (utilize join, introduce index, etc)

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