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

Improve performance #39

Open
praseodym opened this issue Apr 28, 2018 · 0 comments
Open

Improve performance #39

praseodym opened this issue Apr 28, 2018 · 0 comments

Comments

@praseodym
Copy link
Member

The avarage GET /api/v1/course/active takes 450ms (p90) and does 1046(!) SQL queries. This one comes up a lot:

select exam0_.id, exam0_.course, exam0_.date, exam0_.including_answers, exam0_.name from exam exam0_ left outer join course course1_ on exam0_.course = course1_.code where course1_.code = ?

I think simple some optimisations (eager fetching) should take care of this and improve performance.

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

1 participant