Performance improvements in students.views.assignment.
Also removed unneeded .all() in comments query.