Fetching attendances for large sections is slow #408
Labels
bug
Something isn't working
good first issue
Good for newcomers
sev4
Normal severity - System impaired
This should be investigated further, but when fetching attendances for large sections (for reference, I have a section of ~40 people), the request takes ~2 seconds to load. A similar load time can be observed when fetching the student roster list.
The same can be reproduced locally with a section of 30 people with all attendance objects populated from 3 months, where sections occur 2 times per week. The request time is fast without any attendance objects populated though.
This is likely due to a very inefficient query/filter in the viewset, but should be investigated further for the root cause and possible solutions.
The text was updated successfully, but these errors were encountered: