Files
edx-platform/lms/djangoapps
David Ormsbee a712f1f93b Remove full table scan of VerificationDeadline. (#21119)
* Remove full table scan of VerificationDeadline.

Before this commit, we were doing a full table scan of
student_verificationdeadline, loading the results into a giant
dict, and reading/writing that to the cache. This was fine when the
code was introduced and there were dozens of courses, but now that
we're over 12K courses, it's becoming a major performance issue for
the Student Dashboard.

This uses a subquery to the course enrollment table so that we're
only ever pulling back the deadlines to a student's enrolled courses
for any given request. It removes the cache access entirely.
2019-07-17 10:25:08 -04:00
..
2019-07-11 10:51:39 +05:00
2019-05-15 15:56:37 -04:00
2019-07-10 15:07:43 +05:00
2019-05-16 13:44:02 -04:00
2019-05-15 14:54:38 -04:00
2019-05-15 15:21:57 -04:00
2019-05-16 10:00:42 -04:00
2019-07-11 19:27:15 +05:00
2019-05-16 14:42:22 -04:00
2019-05-15 14:55:19 -04:00
2019-07-12 15:35:34 +05:00
2019-05-16 14:42:22 -04:00
2019-06-21 16:39:24 +05:00