Describe the bug (Tell us what happens instead of the expected behavior) :
In a course it a lot of data and also many users the resource access view runs really slow. This can cause the CPU on the DB to timeout.
The query identified here on resource_access is very slow and probably could be either optimized or have more indexes added. The user_id columns need to be indexed.
Describe the bug (Tell us what happens instead of the expected behavior) :
In a course it a lot of data and also many users the resource access view runs really slow. This can cause the CPU on the DB to timeout.
The query identified here on resource_access is very slow and probably could be either optimized or have more indexes added. The user_id columns need to be indexed.
https://github.com/tl-its-umich-edu/my-learning-analytics/blob/0baa298eeef3479a5f6029f2fd09cdee26356c8f/dashboard/views.py#L301
Steps to Reproduce :