class Backend::Db::User::Collection
- Backend::Db::User::Collection
- Clear::Model::CollectionBase(Backend::Db::User)
- Reference
- Object
Overview
Addition of the method for eager loading and N+1 avoidance.
Defined in:
backend/db/user.crInstance Method Summary
- #with_student(fetch_columns = false, &block : Student::Collection -> ) : self
- #with_student(fetch_columns = false) : self
- #with_teacher(fetch_columns = false, &block : Teacher::Collection -> ) : self
- #with_teacher(fetch_columns = false) : self
-
#with_tokens(fetch_columns = false, &block : Token::Collection -> ) : self
Eager load the has many relation tokens.
- #with_tokens(fetch_columns = false)
Instance Method Detail
Eager load the has many relation tokens. Use it to avoid N+1 queries.