class Backend::Db::Class::Collection

Overview

Addition of the method for eager loading and N+1 avoidance.

Defined in:

backend/db/class.cr

Instance Method Summary

Instance Method Detail

def with_students(fetch_columns = false, &block : Student::Collection -> ) : self #

Eager load the has many relation students. Use it to avoid N+1 queries.


def with_students(fetch_columns = false) #