class User::Collection
- User::Collection
- Clear::Model::CollectionBase(User)
- Reference
- Object
Overview
Addition of the method for eager loading and N+1 avoidance.
Defined in:
models/user.cr:2models/user.cr:24
Instance Method Summary
- #published
-
#with_repositories(fetch_columns = false, &block : Repository::Collection -> ) : self
Eager load the has many relation repositories.
- #with_repositories(fetch_columns = false)
Instance Method Detail
Eager load the has many relation repositories. Use it to avoid N+1 queries.