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