class Tenant::Collection
- Tenant::Collection
- Clear::Model::CollectionBase(Tenant)
- Reference
- Object
Overview
Addition of the method for eager loading and N+1 avoidance.
Defined in:
models/tenant.crInstance Method Summary
-
#with_attendees(fetch_columns = false, &block : Attendee::Collection -> ) : self
Eager load the has many relation attendees.
- #with_attendees(fetch_columns = false)
-
#with_event_metadata(fetch_columns = false, &block : EventMetadata::Collection -> ) : self
Eager load the has many relation event_metadata.
- #with_event_metadata(fetch_columns = false)
-
#with_guests(fetch_columns = false, &block : Guest::Collection -> ) : self
Eager load the has many relation guests.
- #with_guests(fetch_columns = false)
Instance Method Detail
Eager load the has many relation attendees. Use it to avoid N+1 queries.
Eager load the has many relation event_metadata. Use it to avoid N+1 queries.
Eager load the has many relation guests. Use it to avoid N+1 queries.