class Backend::Db::Assignment::Collection
- Backend::Db::Assignment::Collection
- Clear::Model::CollectionBase(Backend::Db::Assignment)
- Reference
- Object
Overview
Addition of the method for eager loading and N+1 avoidance.
Defined in:
backend/db/assignment.crInstance Method Summary
-
#with_student_assignments(fetch_columns = false, &block : StudentAssignment::Collection -> ) : self
Eager load the has many relation student_assignments.
- #with_student_assignments(fetch_columns = false)
Instance Method Detail
def with_student_assignments(fetch_columns = false, &block : StudentAssignment::Collection -> ) : self
#
Eager load the has many relation student_assignments. Use it to avoid N+1 queries.